#22271A#22271A

#22271A is a dark, muted yellow-green. Relative luminance 0.019; OKLCH L 26.3% C 0.024 H 125.1°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#22271A
RGBrgb(34, 39, 26)
HSLhsl(83, 20%, 13%)
HSVhsv(83, 33%, 15%)
CMYKcmyk(12.8%, 0%, 33.3%, 84.7%)
CIE-LABlab(14.77, -5.23, 7.87)
CIE-LCHlch(14.77, 9.45, 123.60°)
OKLaboklab(26.34% -0.014 0.0199)
OKLCHoklch(26.34% 0.024 125.1)
XYZxyz(1.5716, 1.8657, 1.2544)
Luminance0.0187 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22271A #1F1A27
analogous
#27251A #22271A #1B271A
triadic
#22271A #1A2227 #271A22
tetradic
#22271A #1A2725 #1F1A27 #271A1B
square
#22271A #1A2725 #1F1A27 #271A1B
split-complementary
#22271A #1A1B27 #251A27
monochromatic
#10120C #10120C #22271A #424C32 #62704B

Accessibility & contrast

On white

15.29
#22271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#22271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22271A
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22271A#FFFFFF#000000##FFFFFF
##22271A1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282519
Deuteranopia (green-blind)
#28251B
Tritanopia (blue-blind)
#232624
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #22271a;
/* rgb */ color: rgb(34, 39, 26);
/* oklch */ color: oklch(26.3% 0.024 125.1);
Tailwind
colors: {
  custom: {
    50: '#5d6156',
    500: '#22271a',
    950: '#000000',
  },
}
SCSS
$custom: #22271a;
$custom-light: #5d6156;
$custom-dark: #000000;
JSON
{
  "hex": "#22271a",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 83.077,
    "s": 20,
    "l": 12.745
  },
  "oklch": {
    "l": 0.26336,
    "c": 0.02434,
    "h": 125.1
  },
  "luminance": 0.01866
}

Semantic roles & 50–950 ramp

primary
#22271A
secondary
#4C4359
accent
#6BBD8B
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040503
muted
#797978

Preview Lab

Preview with #22271A

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

Preview Lab → · Contrast checker → · Palette generator →

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