#51881E#51881E

#51881E 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#51881E
RGBrgb(81, 136, 30)
HSLhsl(91, 64%, 33%)
HSVhsv(91, 78%, 53%)
CMYKcmyk(40.4%, 0%, 77.9%, 46.7%)
CIE-LABlab(51.21, -35.90, 47.63)
CIE-LCHlch(51.21, 59.64, 127.00°)
OKLaboklab(56.74% -0.1009 0.1061)
OKLCHoklch(56.74% 0.146 133.6)
XYZxyz(12.4316, 19.4508, 4.3274)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51881E #551E88
analogous
#86881E #51881E #1E8820
triadic
#51881E #1E5188 #881E51
tetradic
#51881E #1E8688 #551E88 #88201E
square
#51881E #1E8688 #551E88 #88201E
split-complementary
#51881E #201E88 #881E86
monochromatic
#152408 #335613 #51881E #6FBA29 #8ED749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51881E#FFFFFF#000000##000000
##51881E1.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)
#8E7D05
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#518274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #51881e;
/* rgb */ color: rgb(81, 136, 30);
/* oklch */ color: oklch(56.7% 0.146 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ab62',
    500: '#51881e',
    950: '#000000',
  },
}
SCSS
$custom: #51881e;
$custom-light: #87ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#51881e",
  "rgb": {
    "r": 81,
    "g": 136,
    "b": 30
  },
  "hsl": {
    "h": 91.132,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56738,
    "c": 0.14645,
    "h": 133.6
  },
  "luminance": 0.19451
}

Semantic roles & 50–950 ramp

primary
#51881E
secondary
#8349B9
accent
#41E797
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #51881E

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

Preview Lab → · Contrast checker → · Palette generator →

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