#40570F#40570F

#40570F is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.3% C 0.099 H 126.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#40570F
RGBrgb(64, 87, 15)
HSLhsl(79, 71%, 20%)
HSVhsv(79, 83%, 34%)
CMYKcmyk(26.4%, 0%, 82.8%, 65.9%)
CIE-LABlab(33.86, -20.25, 36.08)
CIE-LCHlch(33.86, 41.38, 119.30°)
OKLaboklab(42.3% -0.0585 0.0798)
OKLCHoklch(42.3% 0.099 126.3)
XYZxyz(5.6088, 7.9408, 1.6891)
Luminance0.0794 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40570F #260F57
analogous
#574A0F #40570F #1C570F
triadic
#40570F #0F4057 #570F40
tetradic
#40570F #0F574A #260F57 #570F1C
square
#40570F #0F574A #260F57 #570F1C
split-complementary
#40570F #0F1C57 #4A0F57
monochromatic
#131A05 #1A2306 #40570F #668B18 #8DBF21

Accessibility & contrast

On white

8.11
#40570F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#40570F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40570F
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40570F#FFFFFF#000000##FFFFFF
##40570F1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5101
Deuteranopia (green-blind)
#594F16
Tritanopia (blue-blind)
#43524A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40570f;
/* rgb */ color: rgb(64, 87, 15);
/* oklch */ color: oklch(42.3% 0.099 126.3);
Tailwind
colors: {
  custom: {
    50: '#788654',
    500: '#40570f',
    950: '#000000',
  },
}
SCSS
$custom: #40570f;
$custom-light: #788654;
$custom-dark: #000000;
JSON
{
  "hex": "#40570f",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 15
  },
  "hsl": {
    "h": 79.167,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.42296,
    "c": 0.09895,
    "h": 126.3
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#40570F
secondary
#503191
accent
#3AED74
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #40570F

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

Preview Lab → · Contrast checker → · Palette generator →

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