#51881A#51881A

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

Color values

HEX#51881A
RGBrgb(81, 136, 26)
HSLhsl(90, 68%, 32%)
HSVhsv(90, 81%, 53%)
CMYKcmyk(40.4%, 0%, 80.9%, 46.7%)
CIE-LABlab(51.19, -36.13, 48.94)
CIE-LCHlch(51.19, 60.83, 126.43°)
OKLaboklab(56.71% -0.1018 0.1083)
OKLCHoklch(56.71% 0.149 133.2)
XYZxyz(12.3838, 19.4316, 4.0753)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51881A #511A88
analogous
#88881A #51881A #1A881A
triadic
#51881A #1A5188 #881A51
tetradic
#51881A #1A8888 #511A88 #881A1A
square
#51881A #1A8888 #511A88 #881A1A
split-complementary
#51881A #1A1A88 #881A88
monochromatic
#142106 #325510 #51881A #70BB24 #8EDB42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #51881a;
/* rgb */ color: rgb(81, 136, 26);
/* oklch */ color: oklch(56.7% 0.149 133.2);
Tailwind
colors: {
  custom: {
    50: '#87ab61',
    500: '#51881a',
    950: '#000000',
  },
}
SCSS
$custom: #51881a;
$custom-light: #87ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#51881a",
  "rgb": {
    "r": 81,
    "g": 136,
    "b": 26
  },
  "hsl": {
    "h": 90,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56713,
    "c": 0.14861,
    "h": 133.2
  },
  "luminance": 0.19432
}

Semantic roles & 50–950 ramp

primary
#51881A
secondary
#7F43BB
accent
#3DEB94
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51881A

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

Preview Lab → · Contrast checker → · Palette generator →

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