#40571D#40571D

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

Color values

HEX#40571D
RGBrgb(64, 87, 29)
HSLhsl(84, 50%, 23%)
HSVhsv(84, 67%, 34%)
CMYKcmyk(26.4%, 0%, 66.7%, 65.9%)
CIE-LABlab(33.97, -19.18, 30.06)
CIE-LCHlch(33.97, 35.66, 122.54°)
OKLaboklab(42.42% -0.0543 0.0694)
OKLCHoklch(42.42% 0.088 128)
XYZxyz(5.7443, 7.9950, 2.4027)
Luminance0.0799 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40571D #341D57
analogous
#57511D #40571D #23571D
triadic
#40571D #1D4057 #571D40
tetradic
#40571D #1D5751 #341D57 #571D23
square
#40571D #1D5751 #341D57 #571D23
split-complementary
#40571D #1D2357 #511D57
monochromatic
#111708 #1E290E #40571D #62852C #84B33C

Accessibility & contrast

On white

8.08
#40571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40571D
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40571D#FFFFFF#000000##FFFFFF
##40571D1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40571d;
/* rgb */ color: rgb(64, 87, 29);
/* oklch */ color: oklch(42.4% 0.088 128.0);
Tailwind
colors: {
  custom: {
    50: '#77865c',
    500: '#40571d',
    950: '#000000',
  },
}
SCSS
$custom: #40571d;
$custom-light: #77865c;
$custom-dark: #000000;
JSON
{
  "hex": "#40571d",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 83.793,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42424,
    "c": 0.08811,
    "h": 128
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#40571D
secondary
#60448C
accent
#4EDA85
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40571D

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

Preview Lab → · Contrast checker → · Palette generator →

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