#51881D#51881D

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

Color values

HEX#51881D
RGBrgb(81, 136, 29)
HSLhsl(91, 65%, 32%)
HSVhsv(91, 79%, 53%)
CMYKcmyk(40.4%, 0%, 78.7%, 46.7%)
CIE-LABlab(51.20, -35.96, 47.97)
CIE-LCHlch(51.20, 59.95, 126.85°)
OKLaboklab(56.73% -0.1012 0.1067)
OKLCHoklch(56.73% 0.147 133.5)
XYZxyz(12.4191, 19.4457, 4.2612)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51881D #541D88
analogous
#87881D #51881D #1D881F
triadic
#51881D #1D5188 #881D51
tetradic
#51881D #1D8788 #541D88 #881F1D
square
#51881D #1D8788 #541D88 #881F1D
split-complementary
#51881D #1F1D88 #881D87
monochromatic
#152307 #335612 #51881D #6FBA28 #8ED848

Accessibility & contrast

On white

4.30
#51881D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##51881D#FFFFFF#000000##000000
##51881D1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D03
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#518274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #51881d;
/* rgb */ color: rgb(81, 136, 29);
/* oklch */ color: oklch(56.7% 0.147 133.5);
Tailwind
colors: {
  custom: {
    50: '#87ab62',
    500: '#51881d',
    950: '#000000',
  },
}
SCSS
$custom: #51881d;
$custom-light: #87ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#51881d",
  "rgb": {
    "r": 81,
    "g": 136,
    "b": 29
  },
  "hsl": {
    "h": 90.841,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56731,
    "c": 0.14702,
    "h": 133.5
  },
  "luminance": 0.19446
}

Semantic roles & 50–950 ramp

primary
#51881D
secondary
#8247BA
accent
#40E896
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51881D

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

Preview Lab → · Contrast checker → · Palette generator →

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