#51871A#51871A

#51871A is a mid, vivid yellow-green. Relative luminance 0.192; OKLCH L 56.4% C 0.147 H 133.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#51871A
RGBrgb(81, 135, 26)
HSLhsl(90, 68%, 32%)
HSVhsv(90, 81%, 53%)
CMYKcmyk(40%, 0%, 80.7%, 47.1%)
CIE-LABlab(50.86, -35.69, 48.64)
CIE-LCHlch(50.86, 60.33, 126.27°)
OKLaboklab(56.45% -0.1006 0.1076)
OKLCHoklch(56.45% 0.147 133.1)
XYZxyz(12.2436, 19.1513, 4.0285)
Luminance0.1915 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51871A #501A87
analogous
#87871A #51871A #1A871A
triadic
#51871A #1A5187 #871A51
tetradic
#51871A #1A8787 #501A87 #871A1A
square
#51871A #1A8787 #501A87 #871A1A
split-complementary
#51871A #1A1A87 #871A87
monochromatic
#132006 #325410 #51871A #70BA24 #8EDA41

Accessibility & contrast

On white

4.35
#51871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#51871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51871A
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51871A#FFFFFF#000000##000000
##51871A1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#857826
Tritanopia (blue-blind)
#518173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #51871a;
/* rgb */ color: rgb(81, 135, 26);
/* oklch */ color: oklch(56.4% 0.147 133.1);
Tailwind
colors: {
  custom: {
    50: '#87aa61',
    500: '#51871a',
    950: '#000000',
  },
}
SCSS
$custom: #51871a;
$custom-light: #87aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#51871a",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 89.725,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56447,
    "c": 0.14734,
    "h": 133.1
  },
  "luminance": 0.19152
}

Semantic roles & 50–950 ramp

primary
#51871A
secondary
#7E42BA
accent
#3DEB93
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51871A

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

Preview Lab → · Contrast checker → · Palette generator →

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