#57871F#57871F

#57871F is a mid, vivid yellow-green. Relative luminance 0.195; OKLCH L 56.8% C 0.141 H 131.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#57871F
RGBrgb(87, 135, 31)
HSLhsl(88, 63%, 33%)
HSVhsv(88, 77%, 53%)
CMYKcmyk(35.6%, 0%, 77%, 47.1%)
CIE-LABlab(51.21, -33.14, 47.39)
CIE-LCHlch(51.21, 57.83, 124.97°)
OKLaboklab(56.83% -0.0938 0.1057)
OKLCHoklch(56.83% 0.141 131.6)
XYZxyz(12.8416, 19.4526, 4.3742)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#57871F #4F1F87
analogous
#87831F #57871F #23871F
triadic
#57871F #1F5787 #871F57
tetradic
#57871F #1F8783 #4F1F87 #871F23
square
#57871F #1F8783 #4F1F87 #871F23
split-complementary
#57871F #1F2387 #831F87
monochromatic
#172308 #375514 #57871F #77B92A #96D64B

Accessibility & contrast

On white

4.29
#57871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#57871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #57871F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##57871F#FFFFFF#000000##000000
##57871F1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C08
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#588173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #57871f;
/* rgb */ color: rgb(87, 135, 31);
/* oklch */ color: oklch(56.8% 0.141 131.6);
Tailwind
colors: {
  custom: {
    50: '#8baa63',
    500: '#57871f',
    950: '#000000',
  },
}
SCSS
$custom: #57871f;
$custom-light: #8baa63;
$custom-dark: #000000;
JSON
{
  "hex": "#57871f",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 87.692,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56827,
    "c": 0.1413,
    "h": 131.6
  },
  "luminance": 0.19453
}

Semantic roles & 50–950 ramp

primary
#57871F
secondary
#7D4AB8
accent
#42E68E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #57871F

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

Preview Lab → · Contrast checker → · Palette generator →

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