#51871E#51871E

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

Color values

HEX#51871E
RGBrgb(81, 135, 30)
HSLhsl(91, 64%, 32%)
HSVhsv(91, 78%, 53%)
CMYKcmyk(40%, 0%, 77.8%, 47.1%)
CIE-LABlab(50.89, -35.45, 47.31)
CIE-LCHlch(50.89, 59.12, 126.85°)
OKLaboklab(56.47% -0.0997 0.1055)
OKLCHoklch(56.47% 0.145 133.4)
XYZxyz(12.2915, 19.1704, 4.2807)
Luminance0.1917 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51871E #541E87
analogous
#86871E #51871E #1E8720
triadic
#51871E #1E5187 #871E51
tetradic
#51871E #1E8687 #541E87 #87201E
square
#51871E #1E8687 #541E87 #87201E
split-complementary
#51871E #201E87 #871E86
monochromatic
#152308 #335513 #51871E #6FB929 #8ED749

Accessibility & contrast

On white

4.34
#51871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##51871E#FFFFFF#000000##000000
##51871E1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51871e;
/* rgb */ color: rgb(81, 135, 30);
/* oklch */ color: oklch(56.5% 0.145 133.4);
Tailwind
colors: {
  custom: {
    50: '#87aa62',
    500: '#51871e',
    950: '#000000',
  },
}
SCSS
$custom: #51871e;
$custom-light: #87aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#51871e",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 90.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56472,
    "c": 0.14516,
    "h": 133.4
  },
  "luminance": 0.19171
}

Semantic roles & 50–950 ramp

primary
#51871E
secondary
#8248B9
accent
#41E796
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #51871E

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

Preview Lab → · Contrast checker → · Palette generator →

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