#51971F#51971F

#51971F 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#51971F
RGBrgb(81, 151, 31)
HSLhsl(95, 66%, 36%)
HSVhsv(95, 79%, 59%)
CMYKcmyk(46.4%, 0%, 79.5%, 40.8%)
CIE-LABlab(56.07, -42.21, 51.93)
CIE-LCHlch(56.07, 66.92, 129.11°)
OKLaboklab(60.72% -0.1179 0.1153)
OKLCHoklch(60.72% 0.165 135.6)
XYZxyz(14.7069, 23.9806, 5.1498)
Luminance0.2398 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51971F #651F97
analogous
#8D971F #51971F #1F9729
triadic
#51971F #1F5197 #971F51
tetradic
#51971F #1F8D97 #651F97 #97291F
square
#51971F #1F8D97 #651F97 #97291F
split-complementary
#51971F #291F97 #971F8D
monochromatic
#1B310A #366415 #51971F #6CCA29 #8DDC54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51971F#FFFFFF#000000##000000
##51971F1.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)
#4E9181
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #51971f;
/* rgb */ color: rgb(81, 151, 31);
/* oklch */ color: oklch(60.7% 0.165 135.6);
Tailwind
colors: {
  custom: {
    50: '#89b665',
    500: '#51971f',
    950: '#000000',
  },
}
SCSS
$custom: #51971f;
$custom-light: #89b665;
$custom-dark: #000000;
JSON
{
  "hex": "#51971f",
  "rgb": {
    "r": 81,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 95,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60722,
    "c": 0.16487,
    "h": 135.6
  },
  "luminance": 0.23981
}

Semantic roles & 50–950 ramp

primary
#51971F
secondary
#9252BF
accent
#3FE9A2
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51971F

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

Preview Lab → · Contrast checker → · Palette generator →

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