#21510C#21510C

#21510C is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.7% C 0.110 H 138.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#21510C
RGBrgb(33, 81, 12)
HSLhsl(102, 74%, 18%)
HSVhsv(102, 85%, 32%)
CMYKcmyk(59.3%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.00, -29.79, 32.91)
CIE-LCHlch(30.00, 44.39, 132.15°)
OKLaboklab(38.67% -0.0823 0.0733)
OKLCHoklch(38.67% 0.11 138.3)
XYZxyz(3.6359, 6.2344, 1.3595)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21510C #3C0C51
analogous
#43510C #21510C #0C5119
triadic
#21510C #0C2151 #510C21
tetradic
#21510C #0C4351 #3C0C51 #51190C
square
#21510C #0C4351 #3C0C51 #51190C
split-complementary
#21510C #190C51 #510C43
monochromatic
#0B1B04 #0B1C04 #21510C #378614 #4CBC1C

Accessibility & contrast

On white

9.35
#21510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#21510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21510C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21510C#FFFFFF#000000##FFFFFF
##21510C1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544900
Deuteranopia (green-blind)
#4E4514
Tritanopia (blue-blind)
#1D4E44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #21510c;
/* rgb */ color: rgb(33, 81, 12);
/* oklch */ color: oklch(38.7% 0.110 138.3);
Tailwind
colors: {
  custom: {
    50: '#638251',
    500: '#21510c',
    950: '#000000',
  },
}
SCSS
$custom: #21510c;
$custom-light: #638251;
$custom-dark: #000000;
JSON
{
  "hex": "#21510c",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 101.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38666,
    "c": 0.11021,
    "h": 138.3
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#21510C
secondary
#6F2C8C
accent
#37F1B8
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #21510C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#21510C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva