#22420C#22420C

#22420C is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.2% C 0.088 H 135.4°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#22420C
RGBrgb(34, 66, 12)
HSLhsl(96, 69%, 15%)
HSVhsv(96, 82%, 26%)
CMYKcmyk(48.5%, 0%, 81.8%, 74.1%)
CIE-LABlab(24.52, -22.59, 27.57)
CIE-LCHlch(24.52, 35.64, 129.33°)
OKLaboklab(34.18% -0.063 0.0621)
OKLCHoklch(34.18% 0.088 135.4)
XYZxyz(2.6742, 4.2629, 1.0297)
Luminance0.0426 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22420C #2C0C42
analogous
#3D420C #22420C #0C4211
triadic
#22420C #0C2242 #420C22
tetradic
#22420C #0C3D42 #2C0C42 #42110C
square
#22420C #0C3D42 #2C0C42 #42110C
split-complementary
#22420C #110C42 #420C3D
monochromatic
#0D1A05 #0D1A05 #22420C #3D7615 #57AA1F

Accessibility & contrast

On white

11.34
#22420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#22420C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22420C
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22420C#FFFFFF#000000##FFFFFF
##22420C1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22420c;
/* rgb */ color: rgb(34, 66, 12);
/* oklch */ color: oklch(34.2% 0.088 135.4);
Tailwind
colors: {
  custom: {
    50: '#61764f',
    500: '#22420c',
    950: '#000000',
  },
}
SCSS
$custom: #22420c;
$custom-light: #61764f;
$custom-dark: #000000;
JSON
{
  "hex": "#22420c",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 95.556,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34177,
    "c": 0.08847,
    "h": 135.4
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#22420C
secondary
#5D2C7E
accent
#3CECA4
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #22420C

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

Preview Lab → · Contrast checker → · Palette generator →

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