#212902#212902

#212902 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.4% C 0.060 H 120.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#212902
RGBrgb(33, 41, 2)
HSLhsl(72, 91%, 8%)
HSVhsv(72, 95%, 16%)
CMYKcmyk(19.5%, 0%, 95.1%, 83.9%)
CIE-LABlab(15.03, -10.27, 20.88)
CIE-LCHlch(15.03, 23.27, 116.19°)
OKLaboklab(26.4% -0.0307 0.0519)
OKLCHoklch(26.4% 0.06 120.6)
XYZxyz(1.4311, 1.9136, 0.3514)
Luminance0.0191 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212902 #0A0229
analogous
#291D02 #212902 #0D2902
triadic
#212902 #022129 #290221
tetradic
#212902 #02291D #0A0229 #29020D
square
#212902 #02291D #0A0229 #29020D
split-complementary
#212902 #020D29 #1D0229
monochromatic
#171D01 #171D01 #212902 #506305 #7F9E08

Accessibility & contrast

On white

15.19
#212902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#212902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212902
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212902#FFFFFF#000000##FFFFFF
##2129021.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#2B2604
Tritanopia (blue-blind)
#242621
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #212902;
/* rgb */ color: rgb(33, 41, 2);
/* oklch */ color: oklch(26.4% 0.060 120.6);
Tailwind
colors: {
  custom: {
    50: '#5d6247',
    500: '#212902',
    950: '#000000',
  },
}
SCSS
$custom: #212902;
$custom-light: #5d6247;
$custom-dark: #000000;
JSON
{
  "hex": "#212902",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 2
  },
  "hsl": {
    "h": 72.308,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.26398,
    "c": 0.06026,
    "h": 120.6
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#212902
secondary
#2A196E
accent
#29FF55
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #212902

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

Preview Lab → · Contrast checker → · Palette generator →

#212902 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva