#40571F#40571F

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

Color values

HEX#40571F
RGBrgb(64, 87, 31)
HSLhsl(85, 47%, 23%)
HSVhsv(85, 64%, 34%)
CMYKcmyk(26.4%, 0%, 64.4%, 65.9%)
CIE-LABlab(33.99, -18.98, 29.07)
CIE-LCHlch(33.99, 34.72, 123.14°)
OKLaboklab(42.45% -0.0535 0.0676)
OKLCHoklch(42.45% 0.086 128.4)
XYZxyz(5.7698, 8.0052, 2.5372)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40571F #361F57
analogous
#57521F #40571F #24571F
triadic
#40571F #1F4057 #571F40
tetradic
#40571F #1F5752 #361F57 #571F24
square
#40571F #1F5752 #361F57 #571F24
split-complementary
#40571F #1F2457 #521F57
monochromatic
#111708 #1F2A0F #40571F #61842F #82B13F

Accessibility & contrast

On white

8.07
#40571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40571F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40571F#FFFFFF#000000##FFFFFF
##40571F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40571f;
/* rgb */ color: rgb(64, 87, 31);
/* oklch */ color: oklch(42.4% 0.086 128.4);
Tailwind
colors: {
  custom: {
    50: '#77865d',
    500: '#40571f',
    950: '#000000',
  },
}
SCSS
$custom: #40571f;
$custom-light: #77865d;
$custom-dark: #000000;
JSON
{
  "hex": "#40571f",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 84.643,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.42448,
    "c": 0.0862,
    "h": 128.4
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#40571F
secondary
#63468C
accent
#51D788
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40571F

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

Preview Lab → · Contrast checker → · Palette generator →

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