#51971B#51971B

#51971B is a mid, vivid yellow-green. Relative luminance 0.240; OKLCH L 60.7% C 0.167 H 135.4°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#51971B
RGBrgb(81, 151, 27)
HSLhsl(94, 70%, 35%)
HSVhsv(94, 82%, 59%)
CMYKcmyk(46.4%, 0%, 82.1%, 40.8%)
CIE-LABlab(56.05, -42.43, 53.13)
CIE-LCHlch(56.05, 67.99, 128.61°)
OKLaboklab(60.7% -0.1187 0.1172)
OKLCHoklch(60.7% 0.167 135.4)
XYZxyz(14.6574, 23.9608, 4.8892)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51971B #611B97
analogous
#8F971B #51971B #1B9723
triadic
#51971B #1B5197 #971B51
tetradic
#51971B #1B8F97 #611B97 #97231B
square
#51971B #1B8F97 #611B97 #97231B
split-complementary
#51971B #231B97 #971B8F
monochromatic
#192F08 #356312 #51971B #6DCB24 #8DDF4D

Accessibility & contrast

On white

3.63
#51971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#51971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51971B
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51971B#FFFFFF#000000##000000
##51971B1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#94842A
Tritanopia (blue-blind)
#4F9180
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #51971b;
/* rgb */ color: rgb(81, 151, 27);
/* oklch */ color: oklch(60.7% 0.167 135.4);
Tailwind
colors: {
  custom: {
    50: '#89b663',
    500: '#51971b',
    950: '#000000',
  },
}
SCSS
$custom: #51971b;
$custom-light: #89b663;
$custom-dark: #000000;
JSON
{
  "hex": "#51971b",
  "rgb": {
    "r": 81,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 93.871,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.607,
    "c": 0.16681,
    "h": 135.4
  },
  "luminance": 0.23962
}

Semantic roles & 50–950 ramp

primary
#51971B
secondary
#8E4CC1
accent
#3BEC9F
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51971B

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

Preview Lab → · Contrast checker → · Palette generator →

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