#21420B#21420B

#21420B is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.090 H 135.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#21420B
RGBrgb(33, 66, 11)
HSLhsl(96, 71%, 15%)
HSVhsv(96, 83%, 26%)
CMYKcmyk(50%, 0%, 83.3%, 74.1%)
CIE-LABlab(24.46, -23.06, 27.92)
CIE-LCHlch(24.46, 36.21, 129.55°)
OKLaboklab(34.11% -0.0643 0.0627)
OKLCHoklch(34.11% 0.09 135.7)
XYZxyz(2.6358, 4.2438, 0.9968)
Luminance0.0424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21420B #2C0B42
analogous
#3C420B #21420B #0B4210
triadic
#21420B #0B2142 #420B21
tetradic
#21420B #0B3C42 #2C0B42 #42100B
square
#21420B #0B3C42 #2C0B42 #42100B
split-complementary
#21420B #100B42 #420B3C
monochromatic
#0D1A04 #0D1A04 #21420B #3B7614 #55AB1C

Accessibility & contrast

On white

11.36
#21420B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#21420B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21420B
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21420B#FFFFFF#000000##FFFFFF
##21420B1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C03
Deuteranopia (green-blind)
#403911
Tritanopia (blue-blind)
#203F37
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21420b;
/* rgb */ color: rgb(33, 66, 11);
/* oklch */ color: oklch(34.1% 0.090 135.7);
Tailwind
colors: {
  custom: {
    50: '#60764e',
    500: '#21420b',
    950: '#000000',
  },
}
SCSS
$custom: #21420b;
$custom-light: #60764e;
$custom-dark: #000000;
JSON
{
  "hex": "#21420b",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 96,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.3411,
    "c": 0.08979,
    "h": 135.7
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#21420B
secondary
#5D2A7F
accent
#3AEEA6
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #21420B

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

Preview Lab → · Contrast checker → · Palette generator →

#21420B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva