#51871C#51871C

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

Color values

HEX#51871C
RGBrgb(81, 135, 28)
HSLhsl(90, 66%, 32%)
HSVhsv(90, 79%, 53%)
CMYKcmyk(40%, 0%, 79.3%, 47.1%)
CIE-LABlab(50.87, -35.57, 47.99)
CIE-LCHlch(50.87, 59.74, 126.55°)
OKLaboklab(56.46% -0.1002 0.1066)
OKLCHoklch(56.46% 0.146 133.2)
XYZxyz(12.2667, 19.1605, 4.1504)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51871C #521C87
analogous
#87871C #51871C #1C871C
triadic
#51871C #1C5187 #871C51
tetradic
#51871C #1C8787 #521C87 #871C1C
square
#51871C #1C8787 #521C87 #871C1C
split-complementary
#51871C #1C1C87 #871C87
monochromatic
#142207 #335411 #51871C #6FBA27 #8ED845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51871C#FFFFFF#000000##000000
##51871C1.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)
#8D7C01
Deuteranopia (green-blind)
#857827
Tritanopia (blue-blind)
#518173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #51871c;
/* rgb */ color: rgb(81, 135, 28);
/* oklch */ color: oklch(56.5% 0.146 133.2);
Tailwind
colors: {
  custom: {
    50: '#87aa61',
    500: '#51871c',
    950: '#000000',
  },
}
SCSS
$custom: #51871c;
$custom-light: #87aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#51871c",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 90.28,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56459,
    "c": 0.14628,
    "h": 133.2
  },
  "luminance": 0.19161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51871C

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

Preview Lab → · Contrast checker → · Palette generator →

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