#40571E#40571E

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

Color values

HEX#40571E
RGBrgb(64, 87, 30)
HSLhsl(84, 49%, 23%)
HSVhsv(84, 66%, 34%)
CMYKcmyk(26.4%, 0%, 65.5%, 65.9%)
CIE-LABlab(33.98, -19.08, 29.57)
CIE-LCHlch(33.98, 35.19, 122.84°)
OKLaboklab(42.44% -0.0539 0.0685)
OKLCHoklch(42.44% 0.087 128.2)
XYZxyz(5.7569, 8.0000, 2.4689)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40571E #351E57
analogous
#57511E #40571E #23571E
triadic
#40571E #1E4057 #571E40
tetradic
#40571E #1E5751 #351E57 #571E23
square
#40571E #1E5751 #351E57 #571E23
split-complementary
#40571E #1E2357 #511E57
monochromatic
#111708 #1F290E #40571E #61852E #83B23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40571E#FFFFFF#000000##FFFFFF
##40571E1.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)
#5B5118
Deuteranopia (green-blind)
#584F22
Tritanopia (blue-blind)
#42534B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40571e;
/* rgb */ color: rgb(64, 87, 30);
/* oklch */ color: oklch(42.4% 0.087 128.2);
Tailwind
colors: {
  custom: {
    50: '#77865c',
    500: '#40571e',
    950: '#000000',
  },
}
SCSS
$custom: #40571e;
$custom-light: #77865c;
$custom-dark: #000000;
JSON
{
  "hex": "#40571e",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 30
  },
  "hsl": {
    "h": 84.211,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42436,
    "c": 0.08717,
    "h": 128.2
  },
  "luminance": 0.08
}

Semantic roles & 50–950 ramp

primary
#40571E
secondary
#62458C
accent
#50D887
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40571E

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

Preview Lab → · Contrast checker → · Palette generator →

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