#40571B#40571B

#40571B is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.4% C 0.090 H 127.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#40571B
RGBrgb(64, 87, 27)
HSLhsl(83, 53%, 22%)
HSVhsv(83, 69%, 34%)
CMYKcmyk(26.4%, 0%, 69%, 65.9%)
CIE-LABlab(33.95, -19.37, 31.03)
CIE-LCHlch(33.95, 36.57, 121.97°)
OKLaboklab(42.4% -0.055 0.0712)
OKLCHoklch(42.4% 0.09 127.7)
XYZxyz(5.7204, 7.9854, 2.2767)
Luminance0.0799 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40571B #321B57
analogous
#57501B #40571B #22571B
triadic
#40571B #1B4057 #571B40
tetradic
#40571B #1B5750 #321B57 #571B22
square
#40571B #1B5750 #321B57 #571B22
split-complementary
#40571B #1B2257 #501B57
monochromatic
#111707 #1E280D #40571B #628629 #85B438

Accessibility & contrast

On white

8.09
#40571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#40571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40571B
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40571B#FFFFFF#000000##FFFFFF
##40571B1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5113
Deuteranopia (green-blind)
#584F20
Tritanopia (blue-blind)
#42534B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40571b;
/* rgb */ color: rgb(64, 87, 27);
/* oklch */ color: oklch(42.4% 0.090 127.7);
Tailwind
colors: {
  custom: {
    50: '#77865b',
    500: '#40571b',
    950: '#000000',
  },
}
SCSS
$custom: #40571b;
$custom-light: #77865b;
$custom-dark: #000000;
JSON
{
  "hex": "#40571b",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 83,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42402,
    "c": 0.08995,
    "h": 127.7
  },
  "luminance": 0.07986
}

Semantic roles & 50–950 ramp

primary
#40571B
secondary
#5E418D
accent
#4CDC83
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40571B

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

Preview Lab → · Contrast checker → · Palette generator →

#40571B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva