#42571A#42571A

#42571A is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.5% C 0.090 H 126.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#42571A
RGBrgb(66, 87, 26)
HSLhsl(81, 54%, 22%)
HSVhsv(81, 70%, 34%)
CMYKcmyk(24.1%, 0%, 70.1%, 65.9%)
CIE-LABlab(34.08, -18.57, 31.69)
CIE-LCHlch(34.08, 36.73, 120.37°)
OKLaboklab(42.54% -0.053 0.0724)
OKLCHoklch(42.54% 0.09 126.2)
XYZxyz(5.8414, 8.0491, 2.2230)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42571A #2F1A57
analogous
#574E1A #42571A #24571A
triadic
#42571A #1A4257 #571A42
tetradic
#42571A #1A574E #2F1A57 #571A24
square
#42571A #1A574E #2F1A57 #571A24
split-complementary
#42571A #1A2457 #4E1A57
monochromatic
#121807 #1E280C #42571A #668628 #89B536

Accessibility & contrast

On white

8.05
#42571A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42571A
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42571A#FFFFFF#000000##FFFFFF
##42571A1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5112
Deuteranopia (green-blind)
#59501F
Tritanopia (blue-blind)
#45534A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42571a;
/* rgb */ color: rgb(66, 87, 26);
/* oklch */ color: oklch(42.5% 0.090 126.2);
Tailwind
colors: {
  custom: {
    50: '#78865a',
    500: '#42571a',
    950: '#000000',
  },
}
SCSS
$custom: #42571a;
$custom-light: #78865a;
$custom-dark: #000000;
JSON
{
  "hex": "#42571a",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 80.656,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.08973,
    "h": 126.2
  },
  "luminance": 0.08049
}

Semantic roles & 50–950 ramp

primary
#42571A
secondary
#5A408D
accent
#4ADD7D
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #42571A

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

Preview Lab → · Contrast checker → · Palette generator →

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