#51881C#51881C

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

Color values

HEX#51881C
RGBrgb(81, 136, 28)
HSLhsl(91, 66%, 32%)
HSVhsv(91, 79%, 53%)
CMYKcmyk(40.4%, 0%, 79.4%, 46.7%)
CIE-LABlab(51.20, -36.01, 48.30)
CIE-LCHlch(51.20, 60.25, 126.71°)
OKLaboklab(56.73% -0.1014 0.1072)
OKLCHoklch(56.73% 0.148 133.4)
XYZxyz(12.4069, 19.4409, 4.1971)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51881C #531C88
analogous
#87881C #51881C #1C881D
triadic
#51881C #1C5188 #881C51
tetradic
#51881C #1C8788 #531C88 #881D1C
square
#51881C #1C8788 #531C88 #881D1C
split-complementary
#51881C #1D1C88 #881C87
monochromatic
#152207 #335512 #51881C #6FBB26 #8ED946

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51881C#FFFFFF#000000##000000
##51881C1.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)
#8E7D00
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#518274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #51881c;
/* rgb */ color: rgb(81, 136, 28);
/* oklch */ color: oklch(56.7% 0.148 133.4);
Tailwind
colors: {
  custom: {
    50: '#87ab62',
    500: '#51881c',
    950: '#000000',
  },
}
SCSS
$custom: #51881c;
$custom-light: #87ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#51881c",
  "rgb": {
    "r": 81,
    "g": 136,
    "b": 28
  },
  "hsl": {
    "h": 90.556,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56725,
    "c": 0.14756,
    "h": 133.4
  },
  "luminance": 0.19441
}

Semantic roles & 50–950 ramp

primary
#51881C
secondary
#8145BA
accent
#3FE995
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51881C

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

Preview Lab → · Contrast checker → · Palette generator →

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