#42571E#42571E

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

Color values

HEX#42571E
RGBrgb(66, 87, 30)
HSLhsl(82, 49%, 23%)
HSVhsv(82, 66%, 34%)
CMYKcmyk(24.1%, 0%, 65.5%, 65.9%)
CIE-LABlab(34.12, -18.20, 29.77)
CIE-LCHlch(34.12, 34.89, 121.44°)
OKLaboklab(42.59% -0.0516 0.0689)
OKLCHoklch(42.59% 0.086 126.8)
XYZxyz(5.8893, 8.0683, 2.4751)
Luminance0.0807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42571E #331E57
analogous
#574F1E #42571E #25571E
triadic
#42571E #1E4257 #571E42
tetradic
#42571E #1E574F #331E57 #571E25
square
#42571E #1E574F #331E57 #571E25
split-complementary
#42571E #1E2557 #4F1E57
monochromatic
#111708 #1F290E #42571E #65852E #87B23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42571E#FFFFFF#000000##FFFFFF
##42571E1.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)
#5C5118
Deuteranopia (green-blind)
#595022
Tritanopia (blue-blind)
#45534B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42571e;
/* rgb */ color: rgb(66, 87, 30);
/* oklch */ color: oklch(42.6% 0.086 126.8);
Tailwind
colors: {
  custom: {
    50: '#78865c',
    500: '#42571e',
    950: '#000000',
  },
}
SCSS
$custom: #42571e;
$custom-light: #78865c;
$custom-dark: #000000;
JSON
{
  "hex": "#42571e",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 30
  },
  "hsl": {
    "h": 82.105,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42588,
    "c": 0.08606,
    "h": 126.8
  },
  "luminance": 0.08068
}

Semantic roles & 50–950 ramp

primary
#42571E
secondary
#5F458C
accent
#50D882
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #42571E

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

Preview Lab → · Contrast checker → · Palette generator →

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