#40571A#40571A

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

Color values

HEX#40571A
RGBrgb(64, 87, 26)
HSLhsl(83, 54%, 22%)
HSVhsv(83, 70%, 34%)
CMYKcmyk(26.4%, 0%, 70.1%, 65.9%)
CIE-LABlab(33.94, -19.46, 31.50)
CIE-LCHlch(33.94, 37.02, 121.71°)
OKLaboklab(42.39% -0.0553 0.072)
OKLCHoklch(42.39% 0.091 127.5)
XYZxyz(5.7090, 7.9809, 2.2168)
Luminance0.0798 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40571A #311A57
analogous
#57501A #40571A #22571A
triadic
#40571A #1A4057 #571A40
tetradic
#40571A #1A5750 #311A57 #571A22
square
#40571A #1A5750 #311A57 #571A22
split-complementary
#40571A #1A2257 #501A57
monochromatic
#111807 #1D280C #40571A #638628 #85B536

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40571A#FFFFFF#000000##FFFFFF
##40571A1.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)
#5C5112
Deuteranopia (green-blind)
#584F1F
Tritanopia (blue-blind)
#42534A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40571a;
/* rgb */ color: rgb(64, 87, 26);
/* oklch */ color: oklch(42.4% 0.091 127.5);
Tailwind
colors: {
  custom: {
    50: '#77865a',
    500: '#40571a',
    950: '#000000',
  },
}
SCSS
$custom: #40571a;
$custom-light: #77865a;
$custom-dark: #000000;
JSON
{
  "hex": "#40571a",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 82.623,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.09082,
    "h": 127.5
  },
  "luminance": 0.07981
}

Semantic roles & 50–950 ramp

primary
#40571A
secondary
#5D408D
accent
#4ADD82
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40571A

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

Preview Lab → · Contrast checker → · Palette generator →

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