#42571B#42571B

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

Color values

HEX#42571B
RGBrgb(66, 87, 27)
HSLhsl(81, 53%, 22%)
HSVhsv(81, 69%, 34%)
CMYKcmyk(24.1%, 0%, 69%, 65.9%)
CIE-LABlab(34.09, -18.48, 31.22)
CIE-LCHlch(34.09, 36.28, 120.62°)
OKLaboklab(42.55% -0.0527 0.0715)
OKLCHoklch(42.55% 0.089 126.4)
XYZxyz(5.8528, 8.0537, 2.2829)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42571B #301B57
analogous
#574E1B #42571B #24571B
triadic
#42571B #1B4257 #571B42
tetradic
#42571B #1B574E #301B57 #571B24
square
#42571B #1B574E #301B57 #571B24
split-complementary
#42571B #1B2457 #4E1B57
monochromatic
#121707 #1F280D #42571B #658629 #89B438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42571B#FFFFFF#000000##FFFFFF
##42571B1.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)
#5C5113
Deuteranopia (green-blind)
#59501F
Tritanopia (blue-blind)
#45534B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42571b;
/* rgb */ color: rgb(66, 87, 27);
/* oklch */ color: oklch(42.6% 0.089 126.4);
Tailwind
colors: {
  custom: {
    50: '#78865b',
    500: '#42571b',
    950: '#000000',
  },
}
SCSS
$custom: #42571b;
$custom-light: #78865b;
$custom-dark: #000000;
JSON
{
  "hex": "#42571b",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 81,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42554,
    "c": 0.08884,
    "h": 126.4
  },
  "luminance": 0.08054
}

Semantic roles & 50–950 ramp

primary
#42571B
secondary
#5C418D
accent
#4CDC7E
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #42571B

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

Preview Lab → · Contrast checker → · Palette generator →

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