#51971D#51971D

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

Color values

HEX#51971D
RGBrgb(81, 151, 29)
HSLhsl(94, 68%, 35%)
HSVhsv(94, 81%, 59%)
CMYKcmyk(46.4%, 0%, 80.8%, 40.8%)
CIE-LABlab(56.06, -42.32, 52.55)
CIE-LCHlch(56.06, 67.47, 128.85°)
OKLaboklab(60.71% -0.1183 0.1163)
OKLCHoklch(60.71% 0.166 135.5)
XYZxyz(14.6814, 23.9703, 5.0153)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51971D #631D97
analogous
#8E971D #51971D #1D9726
triadic
#51971D #1D5197 #971D51
tetradic
#51971D #1D8E97 #631D97 #97261D
square
#51971D #1D8E97 #631D97 #97261D
split-complementary
#51971D #261D97 #971D8E
monochromatic
#1A3009 #356413 #51971D #6DCA27 #8DDE51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51971D#FFFFFF#000000##000000
##51971D1.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51971d;
/* rgb */ color: rgb(81, 151, 29);
/* oklch */ color: oklch(60.7% 0.166 135.5);
Tailwind
colors: {
  custom: {
    50: '#89b664',
    500: '#51971d',
    950: '#000000',
  },
}
SCSS
$custom: #51971d;
$custom-light: #89b664;
$custom-dark: #000000;
JSON
{
  "hex": "#51971d",
  "rgb": {
    "r": 81,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 94.426,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60711,
    "c": 0.16587,
    "h": 135.5
  },
  "luminance": 0.23971
}

Semantic roles & 50–950 ramp

primary
#51971D
secondary
#904FC0
accent
#3DEBA1
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51971D

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

Preview Lab → · Contrast checker → · Palette generator →

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