Nearest named color · #21871C
#21871C
Nearest named color: Asian Spice
#21871C (rgb(33 135 28), hsl(117 66% 32%), oklch(0.546 0.168 142.3)) is closest to the named color Asian Spice. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#21871C
oklch(0.546 0.168 142.3)
Color conversions
- HEX
- #21871c
- RGB
- rgb(33 135 28)
- HSL
- hsl(117 66% 32%)
- HWB
- hwb(117 11% 47%)
- OKLCH
- oklch(0.546 0.168 142.3)
- OKLab
- oklab(0.546 -0.133 0.103)
- CIE Lab
- lab(49.23 -44.98 44.74)
- LCH
- lch(49.23 63.44 135.2)
- CMYK
- cmyk(76% 0% 79% 47%)
Tints · Shades · Tones
Tints
- 3F9339
- 569F51
- 6CAB67
- 82B77C
- 96C392
- ABCFA7
- C0DBBD
- D5E7D3
- EAF3E9
Shades
- 1B7517
- 166312
- 10510D
- 0B4108
- 063105
- 032102
- 011301
- 000600
- 000100
Tones
- 31872C
- 3E8639
- 488644
- 52864D
- 5B8557
- 63845F
- 6B8368
- 728270
- 798178
Color harmonies
Complementary +180°
- 21871C
Asian Spice
- 9C47A9
≈ Medium Purple
Analogous -30° +30°
- 21871C
Asian Spice
- 727700
≈ Portuguese Green
- 00846A
≈ Bosphorus
Triadic +120° +240°
- 21871C
Asian Spice
- 376AD1
≈ Enchanting Sapphire
- BF3B41
≈ Rubiate
Split-complementary +150° +210°
- 21871C
Asian Spice
- 7657C8
≈ Fuchsia Blue
- B53B7A
≈ Fuchsia Red
Tetradic +90° +180° +270°
- 21871C
Asian Spice
- 007AA6
≈ Quiet Cove
- 9C47A9
≈ Medium Purple
- AD5400
≈ Tijolo
Contrast & accessibility
Ag
AAOn white
WCAG 4.61:1 · APCA Lc 72
Ag
AAOn black
WCAG 4.54:1 · APCA Lc 30
Best text color: #FFFFFF
WCAG 4.61:1 (AA) · APCA Lc 72
Contrast pairs
Code snippets
CSS
:root {
--asian-spice: #21871c;
--asian-spice-rgb: 33 135 28;
--asian-spice-oklch: oklch(0.546 0.168 142.3);
}
.element {
color: var(--asian-spice);
background-color: hsl(117 66% 32%);
border-color: oklch(0.546 0.168 142.3);
}Tailwind CSS v4
@theme {
--color-asian-spice: #21871c;
--color-asian-spice-50: #d9ffd8;
--color-asian-spice-100: #c6f7c5;
--color-asian-spice-200: #a8e7a7;
--color-asian-spice-300: #7fce7f;
--color-asian-spice-400: #5db756;
--color-asian-spice-500: #2fa029;
--color-asian-spice-600: #2a8725;
--color-asian-spice-700: #226d1e;
--color-asian-spice-800: #1b500f;
--color-asian-spice-900: #123709;
--color-asian-spice-950: #042200;
}SCSS
$asian-spice: #21871c;
$asian-spice-rgb: 33, 135, 28;
$asian-spice-light: mix(#fff, $asian-spice, 20%);
$asian-spice-dark: mix(#000, $asian-spice, 20%);
.element {
color: $asian-spice;
box-shadow: 0 0 0 2px rgba($asian-spice, 0.35);
}