#42571C#42571C

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

Color values

HEX#42571C
RGBrgb(66, 87, 28)
HSLhsl(81, 51%, 23%)
HSVhsv(81, 68%, 34%)
CMYKcmyk(24.1%, 0%, 67.8%, 65.9%)
CIE-LABlab(34.10, -18.39, 30.74)
CIE-LCHlch(34.10, 35.82, 120.89°)
OKLaboklab(42.57% -0.0523 0.0707)
OKLCHoklch(42.57% 0.088 126.5)
XYZxyz(5.8646, 8.0584, 2.3448)
Luminance0.0806 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42571C #311C57
analogous
#574E1C #42571C #25571C
triadic
#42571C #1C4257 #571C42
tetradic
#42571C #1C574E #311C57 #571C25
square
#42571C #1C574E #311C57 #571C25
split-complementary
#42571C #1C2557 #4E1C57
monochromatic
#121707 #1F290D #42571C #65852B #88B43A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42571C#FFFFFF#000000##FFFFFF
##42571C1.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)
#5C5115
Deuteranopia (green-blind)
#595020
Tritanopia (blue-blind)
#45534B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42571c;
/* rgb */ color: rgb(66, 87, 28);
/* oklch */ color: oklch(42.6% 0.088 126.5);
Tailwind
colors: {
  custom: {
    50: '#78865b',
    500: '#42571c',
    950: '#000000',
  },
}
SCSS
$custom: #42571c;
$custom-light: #78865b;
$custom-dark: #000000;
JSON
{
  "hex": "#42571c",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 81.356,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42565,
    "c": 0.08794,
    "h": 126.5
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

primary
#42571C
secondary
#5D428D
accent
#4DDB7F
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #42571C

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

Preview Lab → · Contrast checker → · Palette generator →

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