#51971A#51971A

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

Color values

HEX#51971A
RGBrgb(81, 151, 26)
HSLhsl(94, 71%, 35%)
HSVhsv(94, 83%, 59%)
CMYKcmyk(46.4%, 0%, 82.8%, 40.8%)
CIE-LABlab(56.04, -42.47, 53.42)
CIE-LCHlch(56.04, 68.25, 128.49°)
OKLaboklab(60.7% -0.1189 0.1177)
OKLCHoklch(60.7% 0.167 135.3)
XYZxyz(14.6461, 23.9562, 4.8294)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51971A #601A97
analogous
#90971A #51971A #1A9722
triadic
#51971A #1A5197 #971A51
tetradic
#51971A #1A9097 #601A97 #97221A
square
#51971A #1A9097 #601A97 #97221A
split-complementary
#51971A #221A97 #971A90
monochromatic
#192F08 #356311 #51971A #6DCB23 #8DE04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51971A#FFFFFF#000000##000000
##51971A1.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)
#948429
Tritanopia (blue-blind)
#4F9180
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #51971a;
/* rgb */ color: rgb(81, 151, 26);
/* oklch */ color: oklch(60.7% 0.167 135.3);
Tailwind
colors: {
  custom: {
    50: '#89b663',
    500: '#51971a',
    950: '#000000',
  },
}
SCSS
$custom: #51971a;
$custom-light: #89b663;
$custom-dark: #000000;
JSON
{
  "hex": "#51971a",
  "rgb": {
    "r": 81,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 93.6,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60695,
    "c": 0.16725,
    "h": 135.3
  },
  "luminance": 0.23957
}

Semantic roles & 50–950 ramp

primary
#51971A
secondary
#8E4BC2
accent
#3AED9F
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51971A

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

Preview Lab → · Contrast checker → · Palette generator →

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