#222812#222812

#222812 is a dark, muted yellow-green. Relative luminance 0.019; OKLCH L 26.4% C 0.039 H 121.6°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#222812
RGBrgb(34, 40, 18)
HSLhsl(76, 38%, 11%)
HSVhsv(76, 55%, 16%)
CMYKcmyk(15%, 0%, 55%, 84.3%)
CIE-LABlab(14.96, -7.27, 13.51)
CIE-LCHlch(14.96, 15.34, 118.27°)
OKLaboklab(26.44% -0.0202 0.0329)
OKLCHoklch(26.44% 0.039 121.6)
XYZxyz(1.5277, 1.9013, 0.8587)
Luminance0.0190 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222812 #181228
analogous
#282312 #222812 #172812
triadic
#222812 #122228 #281222
tetradic
#222812 #122823 #181228 #281217
square
#222812 #122823 #181228 #281217
split-complementary
#222812 #121728 #231228
monochromatic
#121509 #121509 #222812 #465225 #6A7C38

Accessibility & contrast

On white

15.22
#222812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222812
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222812#FFFFFF#000000##FFFFFF
##2228121.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2610
Deuteranopia (green-blind)
#2A2613
Tritanopia (blue-blind)
#242623
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #222812;
/* rgb */ color: rgb(34, 40, 18);
/* oklch */ color: oklch(26.4% 0.039 121.6);
Tailwind
colors: {
  custom: {
    50: '#5d6150',
    500: '#222812',
    950: '#000000',
  },
}
SCSS
$custom: #222812;
$custom-light: #5d6150;
$custom-dark: #000000;
JSON
{
  "hex": "#222812",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 18
  },
  "hsl": {
    "h": 76.364,
    "s": 37.931,
    "l": 11.373
  },
  "oklch": {
    "l": 0.26436,
    "c": 0.03856,
    "h": 121.6
  },
  "luminance": 0.01901
}

Semantic roles & 50–950 ramp

primary
#222812
secondary
#42375F
accent
#5ACE7A
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040502
muted
#797978

Preview Lab

Preview with #222812

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

Preview Lab → · Contrast checker → · Palette generator →

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