#42571F#42571F

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

Color values

HEX#42571F
RGBrgb(66, 87, 31)
HSLhsl(83, 47%, 23%)
HSVhsv(83, 64%, 34%)
CMYKcmyk(24.1%, 0%, 64.4%, 65.9%)
CIE-LABlab(34.14, -18.10, 29.27)
CIE-LCHlch(34.14, 34.41, 121.74°)
OKLaboklab(42.6% -0.0512 0.068)
OKLCHoklch(42.6% 0.085 127)
XYZxyz(5.9023, 8.0735, 2.5434)
Luminance0.0807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42571F #341F57
analogous
#57501F #42571F #26571F
triadic
#42571F #1F4257 #571F42
tetradic
#42571F #1F5750 #341F57 #571F26
square
#42571F #1F5750 #341F57 #571F26
split-complementary
#42571F #1F2657 #501F57
monochromatic
#111708 #202A0F #42571F #64842F #86B13F

Accessibility & contrast

On white

8.03
#42571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42571F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42571F#FFFFFF#000000##FFFFFF
##42571F1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5119
Deuteranopia (green-blind)
#595023
Tritanopia (blue-blind)
#44534B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42571f;
/* rgb */ color: rgb(66, 87, 31);
/* oklch */ color: oklch(42.6% 0.085 127.0);
Tailwind
colors: {
  custom: {
    50: '#78865d',
    500: '#42571f',
    950: '#000000',
  },
}
SCSS
$custom: #42571f;
$custom-light: #78865d;
$custom-dark: #000000;
JSON
{
  "hex": "#42571f",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 82.5,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.426,
    "c": 0.0851,
    "h": 127
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#42571F
secondary
#60468C
accent
#51D783
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #42571F

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

Preview Lab → · Contrast checker → · Palette generator →

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