#51871B#51871B

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

Color values

HEX#51871B
RGBrgb(81, 135, 27)
HSLhsl(90, 67%, 32%)
HSVhsv(90, 80%, 53%)
CMYKcmyk(40%, 0%, 80%, 47.1%)
CIE-LABlab(50.87, -35.63, 48.32)
CIE-LCHlch(50.87, 60.04, 126.41°)
OKLaboklab(56.45% -0.1004 0.1071)
OKLCHoklch(56.45% 0.147 133.2)
XYZxyz(12.2550, 19.1558, 4.0884)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51871B #511B87
analogous
#87871B #51871B #1B871B
triadic
#51871B #1B5187 #871B51
tetradic
#51871B #1B8787 #511B87 #871B1B
square
#51871B #1B8787 #511B87 #871B1B
split-complementary
#51871B #1B1B87 #871B87
monochromatic
#142107 #325411 #51871B #70BA25 #8ED943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51871B#FFFFFF#000000##000000
##51871B1.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)
#857827
Tritanopia (blue-blind)
#518173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #51871b;
/* rgb */ color: rgb(81, 135, 27);
/* oklch */ color: oklch(56.5% 0.147 133.2);
Tailwind
colors: {
  custom: {
    50: '#87aa61',
    500: '#51871b',
    950: '#000000',
  },
}
SCSS
$custom: #51871b;
$custom-light: #87aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#51871b",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 90,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56453,
    "c": 0.14681,
    "h": 133.2
  },
  "luminance": 0.19156
}

Semantic roles & 50–950 ramp

primary
#51871B
secondary
#7F44BA
accent
#3EEA94
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51871B

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

Preview Lab → · Contrast checker → · Palette generator →

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