#51871F#51871F

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

Color values

HEX#51871F
RGBrgb(81, 135, 31)
HSLhsl(91, 63%, 33%)
HSVhsv(91, 77%, 53%)
CMYKcmyk(40%, 0%, 77%, 47.1%)
CIE-LABlab(50.89, -35.39, 46.97)
CIE-LCHlch(50.89, 58.81, 127.00°)
OKLaboklab(56.48% -0.0995 0.1049)
OKLCHoklch(56.48% 0.145 133.5)
XYZxyz(12.3044, 19.1756, 4.3490)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51871F #551F87
analogous
#85871F #51871F #1F8721
triadic
#51871F #1F5187 #871F51
tetradic
#51871F #1F8587 #551F87 #87211F
square
#51871F #1F8587 #551F87 #87211F
split-complementary
#51871F #211F87 #871F85
monochromatic
#152308 #335514 #51871F #6FB92A #8ED64B

Accessibility & contrast

On white

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

On black

4.84
#51871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51871F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51871F#FFFFFF#000000##000000
##51871F1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C08
Deuteranopia (green-blind)
#85782A
Tritanopia (blue-blind)
#518173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #51871f;
/* rgb */ color: rgb(81, 135, 31);
/* oklch */ color: oklch(56.5% 0.145 133.5);
Tailwind
colors: {
  custom: {
    50: '#87aa63',
    500: '#51871f',
    950: '#000000',
  },
}
SCSS
$custom: #51871f;
$custom-light: #87aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#51871f",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 91.154,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56479,
    "c": 0.14458,
    "h": 133.5
  },
  "luminance": 0.19176
}

Semantic roles & 50–950 ramp

primary
#51871F
secondary
#834AB8
accent
#42E697
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #51871F

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

Preview Lab → · Contrast checker → · Palette generator →

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