#222811#222811

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

Color values

HEX#222811
RGBrgb(34, 40, 17)
HSLhsl(76, 40%, 11%)
HSVhsv(76, 58%, 16%)
CMYKcmyk(15%, 0%, 57.5%, 84.3%)
CIE-LABlab(14.94, -7.41, 14.09)
CIE-LCHlch(14.94, 15.92, 117.76°)
OKLaboklab(26.42% -0.0207 0.0342)
OKLCHoklch(26.42% 0.04 121.2)
XYZxyz(1.5197, 1.8981, 0.8165)
Luminance0.0190 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222811 #171128
analogous
#282211 #222811 #162811
triadic
#222811 #112228 #281122
tetradic
#222811 #112822 #171128 #281116
square
#222811 #112822 #171128 #281116
split-complementary
#222811 #111628 #221128
monochromatic
#121509 #121509 #222811 #475323 #6B7E36

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##222811#FFFFFF#000000##FFFFFF
##2228111.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)
#2A260F
Deuteranopia (green-blind)
#2A2612
Tritanopia (blue-blind)
#242623
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #222811;
/* rgb */ color: rgb(34, 40, 17);
/* oklch */ color: oklch(26.4% 0.040 121.2);
Tailwind
colors: {
  custom: {
    50: '#5d614f',
    500: '#222811',
    950: '#000000',
  },
}
SCSS
$custom: #222811;
$custom-light: #5d614f;
$custom-dark: #000000;
JSON
{
  "hex": "#222811",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 17
  },
  "hsl": {
    "h": 75.652,
    "s": 40.351,
    "l": 11.176
  },
  "oklch": {
    "l": 0.26417,
    "c": 0.03997,
    "h": 121.2
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#222811
secondary
#40355F
accent
#58D077
background
#F5F5F4
surface
#E9E9E7
border
#C5C5C3
text
#040502
muted
#797978

Preview Lab

Preview with #222811

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

Preview Lab → · Contrast checker → · Palette generator →

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