#51881B#51881B

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

Color values

HEX#51881B
RGBrgb(81, 136, 27)
HSLhsl(90, 67%, 32%)
HSVhsv(90, 80%, 53%)
CMYKcmyk(40.4%, 0%, 80.1%, 46.7%)
CIE-LABlab(51.19, -36.07, 48.63)
CIE-LCHlch(51.19, 60.54, 126.57°)
OKLaboklab(56.72% -0.1016 0.1077)
OKLCHoklch(56.72% 0.148 133.3)
XYZxyz(12.3951, 19.4362, 4.1351)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51881B #521B88
analogous
#88881B #51881B #1B881B
triadic
#51881B #1B5188 #881B51
tetradic
#51881B #1B8888 #521B88 #881B1B
square
#51881B #1B8888 #521B88 #881B1B
split-complementary
#51881B #1B1B88 #881B88
monochromatic
#142207 #335511 #51881B #6FBB25 #8EDA44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51881B#FFFFFF#000000##000000
##51881B1.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)
#867827
Tritanopia (blue-blind)
#518274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #51881b;
/* rgb */ color: rgb(81, 136, 27);
/* oklch */ color: oklch(56.7% 0.148 133.3);
Tailwind
colors: {
  custom: {
    50: '#87ab61',
    500: '#51881b',
    950: '#000000',
  },
}
SCSS
$custom: #51881b;
$custom-light: #87ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#51881b",
  "rgb": {
    "r": 81,
    "g": 136,
    "b": 27
  },
  "hsl": {
    "h": 90.275,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.14809,
    "h": 133.3
  },
  "luminance": 0.19437
}

Semantic roles & 50–950 ramp

primary
#51881B
secondary
#8044BB
accent
#3EEA95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51881B

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

Preview Lab → · Contrast checker → · Palette generator →

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