#42571D#42571D

#42571D is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.6% C 0.087 H 126.7°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#42571D
RGBrgb(66, 87, 29)
HSLhsl(82, 50%, 23%)
HSVhsv(82, 67%, 34%)
CMYKcmyk(24.1%, 0%, 66.7%, 65.9%)
CIE-LABlab(34.11, -18.30, 30.26)
CIE-LCHlch(34.11, 35.36, 121.16°)
OKLaboklab(42.58% -0.052 0.0698)
OKLCHoklch(42.58% 0.087 126.7)
XYZxyz(5.8767, 8.0633, 2.4089)
Luminance0.0806 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42571D #321D57
analogous
#574F1D #42571D #25571D
triadic
#42571D #1D4257 #571D42
tetradic
#42571D #1D574F #321D57 #571D25
square
#42571D #1D574F #321D57 #571D25
split-complementary
#42571D #1D2557 #4F1D57
monochromatic
#111708 #1F290E #42571D #65852C #88B33C

Accessibility & contrast

On white

8.04
#42571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#42571D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42571D
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42571D#FFFFFF#000000##FFFFFF
##42571D1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5116
Deuteranopia (green-blind)
#595021
Tritanopia (blue-blind)
#45534B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42571d;
/* rgb */ color: rgb(66, 87, 29);
/* oklch */ color: oklch(42.6% 0.087 126.7);
Tailwind
colors: {
  custom: {
    50: '#78865c',
    500: '#42571d',
    950: '#000000',
  },
}
SCSS
$custom: #42571d;
$custom-light: #78865c;
$custom-dark: #000000;
JSON
{
  "hex": "#42571d",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 81.724,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42576,
    "c": 0.08701,
    "h": 126.7
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#42571D
secondary
#5E448C
accent
#4EDA81
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #42571D

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

Preview Lab → · Contrast checker → · Palette generator →

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