#222212#222212

#222212 is a very dark, muted yellow. Relative luminance 0.015; OKLCH L 24.7% C 0.028 H 108.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#222212
RGBrgb(34, 34, 18)
HSLhsl(60, 31%, 10%)
HSVhsv(60, 47%, 13%)
CMYKcmyk(0%, 0%, 47.1%, 86.7%)
CIE-LABlab(12.78, -3.25, 10.65)
CIE-LCHlch(12.78, 11.14, 106.98°)
OKLaboklab(24.7% -0.0088 0.0266)
OKLCHoklch(24.7% 0.028 108.3)
XYZxyz(1.3409, 1.5278, 0.7964)
Luminance0.0153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222212 #121222
analogous
#221A12 #222212 #1A2212
triadic
#222212 #122222 #221222
tetradic
#222212 #12221A #121222 #22121A
square
#222212 #12221A #121222 #22121A
split-complementary
#222212 #121A22 #1A1222
monochromatic
#14140B #14140B #222212 #4A4A27 #72723C

Accessibility & contrast

On white

16.08
#222212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#222212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222212
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222212#FFFFFF#000000##FFFFFF
##2222121.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242111
Deuteranopia (green-blind)
#252113
Tritanopia (blue-blind)
#24201E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #222212;
/* rgb */ color: rgb(34, 34, 18);
/* oklch */ color: oklch(24.7% 0.028 108.3);
Tailwind
colors: {
  custom: {
    50: '#5d5c50',
    500: '#222212',
    950: '#000000',
  },
}
SCSS
$custom: #222212;
$custom-light: #5d5c50;
$custom-dark: #000000;
JSON
{
  "hex": "#222212",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 30.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.247,
    "c": 0.02797,
    "h": 108.3
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#222212
secondary
#383857
accent
#61C761
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040402
muted
#797978

Preview Lab

Preview with #222212

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

Preview Lab → · Contrast checker → · Palette generator →

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