#51871D#51871D

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

Color values

HEX#51871D
RGBrgb(81, 135, 29)
HSLhsl(91, 65%, 32%)
HSVhsv(91, 79%, 53%)
CMYKcmyk(40%, 0%, 78.5%, 47.1%)
CIE-LABlab(50.88, -35.52, 47.66)
CIE-LCHlch(50.88, 59.44, 126.69°)
OKLaboklab(56.47% -0.1 0.106)
OKLCHoklch(56.47% 0.146 133.3)
XYZxyz(12.2789, 19.1654, 4.2145)
Luminance0.1917 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51871D #531D87
analogous
#86871D #51871D #1D871E
triadic
#51871D #1D5187 #871D51
tetradic
#51871D #1D8687 #531D87 #871E1D
square
#51871D #1D8687 #531D87 #871E1D
split-complementary
#51871D #1E1D87 #871D86
monochromatic
#152207 #335512 #51871D #6FB928 #8ED747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51871D#FFFFFF#000000##000000
##51871D1.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)
#8D7C03
Deuteranopia (green-blind)
#857828
Tritanopia (blue-blind)
#518173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #51871d;
/* rgb */ color: rgb(81, 135, 29);
/* oklch */ color: oklch(56.5% 0.146 133.3);
Tailwind
colors: {
  custom: {
    50: '#87aa62',
    500: '#51871d',
    950: '#000000',
  },
}
SCSS
$custom: #51871d;
$custom-light: #87aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#51871d",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 90.566,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56466,
    "c": 0.14573,
    "h": 133.3
  },
  "luminance": 0.19166
}

Semantic roles & 50–950 ramp

primary
#51871D
secondary
#8146B9
accent
#40E895
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51871D

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

Preview Lab → · Contrast checker → · Palette generator →

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