#51881F#51881F

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

Color values

HEX#51881F
RGBrgb(81, 136, 31)
HSLhsl(91, 63%, 33%)
HSVhsv(91, 77%, 53%)
CMYKcmyk(40.4%, 0%, 77.2%, 46.7%)
CIE-LABlab(51.22, -35.83, 47.28)
CIE-LCHlch(51.22, 59.33, 127.16°)
OKLaboklab(56.75% -0.1007 0.1056)
OKLCHoklch(56.75% 0.146 133.6)
XYZxyz(12.4446, 19.4560, 4.3957)
Luminance0.1946 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51881F #561F88
analogous
#85881F #51881F #1F8822
triadic
#51881F #1F5188 #881F51
tetradic
#51881F #1F8588 #561F88 #88221F
square
#51881F #1F8588 #561F88 #88221F
split-complementary
#51881F #221F88 #881F85
monochromatic
#162408 #335614 #51881F #6FBA2A #8DD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51881F#FFFFFF#000000##000000
##51881F1.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)
#8E7D07
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#518274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #51881f;
/* rgb */ color: rgb(81, 136, 31);
/* oklch */ color: oklch(56.7% 0.146 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ab63',
    500: '#51881f',
    950: '#000000',
  },
}
SCSS
$custom: #51881f;
$custom-light: #87ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#51881f",
  "rgb": {
    "r": 81,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 91.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56745,
    "c": 0.14587,
    "h": 133.6
  },
  "luminance": 0.19457
}

Semantic roles & 50–950 ramp

primary
#51881F
secondary
#844AB9
accent
#42E698
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #51881F

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

Preview Lab → · Contrast checker → · Palette generator →

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