#22271D#22271D

#22271D is a dark, near-neutral yellow-green. Relative luminance 0.019; OKLCH L 26.4% C 0.019 H 129.3°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#22271D
RGBrgb(34, 39, 29)
HSLhsl(90, 15%, 13%)
HSVhsv(90, 26%, 15%)
CMYKcmyk(12.8%, 0%, 25.6%, 84.7%)
CIE-LABlab(14.84, -4.62, 5.88)
CIE-LCHlch(14.84, 7.48, 128.15°)
OKLaboklab(26.42% -0.0123 0.0151)
OKLCHoklch(26.42% 0.019 129.3)
XYZxyz(1.6069, 1.8798, 1.4403)
Luminance0.0188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22271D #221D27
analogous
#27271D #22271D #1D271D
triadic
#22271D #1D2227 #271D22
tetradic
#22271D #1D2727 #221D27 #271D1D
square
#22271D #1D2727 #221D27 #271D1D
split-complementary
#22271D #1D1D27 #271D27
monochromatic
#0F120D #0F120D #22271D #414A37 #5F6D51

Accessibility & contrast

On white

15.26
#22271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#22271D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22271D
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22271D#FFFFFF#000000##FFFFFF
##22271D1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261C
Deuteranopia (green-blind)
#27251D
Tritanopia (blue-blind)
#222624
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #22271d;
/* rgb */ color: rgb(34, 39, 29);
/* oklch */ color: oklch(26.4% 0.019 129.3);
Tailwind
colors: {
  custom: {
    50: '#5d6158',
    500: '#22271d',
    950: '#000000',
  },
}
SCSS
$custom: #22271d;
$custom-light: #5d6158;
$custom-dark: #000000;
JSON
{
  "hex": "#22271d",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 90,
    "s": 14.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26423,
    "c": 0.01946,
    "h": 129.3
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#22271D
secondary
#504858
accent
#70B794
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040503
muted
#797978

Preview Lab

Preview with #22271D

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

Preview Lab → · Contrast checker → · Palette generator →

#22271D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva