#51971E#51971E

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

Color values

HEX#51971E
RGBrgb(81, 151, 30)
HSLhsl(95, 67%, 35%)
HSVhsv(95, 80%, 59%)
CMYKcmyk(46.4%, 0%, 80.1%, 40.8%)
CIE-LABlab(56.06, -42.27, 52.24)
CIE-LCHlch(56.06, 67.20, 128.98°)
OKLaboklab(60.72% -0.1181 0.1158)
OKLCHoklch(60.72% 0.165 135.6)
XYZxyz(14.6939, 23.9754, 5.0815)
Luminance0.2398 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51971E #641E97
analogous
#8D971E #51971E #1E9728
triadic
#51971E #1E5197 #971E51
tetradic
#51971E #1E8D97 #641E97 #97281E
square
#51971E #1E8D97 #641E97 #97281E
split-complementary
#51971E #281E97 #971E8D
monochromatic
#1A310A #366414 #51971E #6CCA28 #8DDD53

Accessibility & contrast

On white

3.62
#51971E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#51971E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51971E
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51971E#FFFFFF#000000##000000
##51971E1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#4F9181
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #51971e;
/* rgb */ color: rgb(81, 151, 30);
/* oklch */ color: oklch(60.7% 0.165 135.6);
Tailwind
colors: {
  custom: {
    50: '#89b665',
    500: '#51971e',
    950: '#000000',
  },
}
SCSS
$custom: #51971e;
$custom-light: #89b665;
$custom-dark: #000000;
JSON
{
  "hex": "#51971e",
  "rgb": {
    "r": 81,
    "g": 151,
    "b": 30
  },
  "hsl": {
    "h": 94.711,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60716,
    "c": 0.16538,
    "h": 135.6
  },
  "luminance": 0.23976
}

Semantic roles & 50–950 ramp

primary
#51971E
secondary
#9151C0
accent
#3EEAA1
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51971E

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

Preview Lab → · Contrast checker → · Palette generator →

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