#212A06#212A06

#212A06 is a dark, muted yellow-green. Relative luminance 0.020; OKLCH L 26.8% C 0.057 H 122.4°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#212A06
RGBrgb(33, 42, 6)
HSLhsl(75, 75%, 9%)
HSVhsv(75, 86%, 16%)
CMYKcmyk(21.4%, 0%, 85.7%, 83.5%)
CIE-LABlab(15.45, -10.46, 19.79)
CIE-LCHlch(15.45, 22.39, 117.87°)
OKLaboklab(26.75% -0.0305 0.0481)
OKLCHoklch(26.75% 0.057 122.4)
XYZxyz(1.4881, 1.9924, 0.4784)
Luminance0.0199 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A06 #0F062A
analogous
#2A2106 #212A06 #0F2A06
triadic
#212A06 #06212A #2A0621
tetradic
#212A06 #062A21 #0F062A #2A060F
square
#212A06 #062A21 #0F062A #2A060F
split-complementary
#212A06 #060F2A #21062A
monochromatic
#151B04 #151B04 #212A06 #4B600E #759515

Accessibility & contrast

On white

15.02
#212A06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#212A06 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A06
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A06#FFFFFF#000000##FFFFFF
##212A061.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2702
Deuteranopia (green-blind)
#2C2708
Tritanopia (blue-blind)
#232723
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #212a06;
/* rgb */ color: rgb(33, 42, 6);
/* oklch */ color: oklch(26.8% 0.057 122.4);
Tailwind
colors: {
  custom: {
    50: '#5d6349',
    500: '#212a06',
    950: '#000000',
  },
}
SCSS
$custom: #212a06;
$custom-light: #5d6349;
$custom-dark: #000000;
JSON
{
  "hex": "#212a06",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 6
  },
  "hsl": {
    "h": 75,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.26752,
    "c": 0.05699,
    "h": 122.4
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#212A06
secondary
#34216B
accent
#36F265
background
#F5F5F4
surface
#E9EAE7
border
#C5C6C3
text
#040501
muted
#797977

Preview Lab

Preview with #212A06

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

Preview Lab → · Contrast checker → · Palette generator →

#212A06 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva