#51971C#51971C

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

Color values

HEX#51971C
RGBrgb(81, 151, 28)
HSLhsl(94, 69%, 35%)
HSVhsv(94, 81%, 59%)
CMYKcmyk(46.4%, 0%, 81.5%, 40.8%)
CIE-LABlab(56.05, -42.37, 52.84)
CIE-LCHlch(56.05, 67.73, 128.73°)
OKLaboklab(60.71% -0.1185 0.1168)
OKLCHoklch(60.71% 0.166 135.4)
XYZxyz(14.6692, 23.9655, 4.9512)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51971C #621C97
analogous
#8F971C #51971C #1C9724
triadic
#51971C #1C5197 #971C51
tetradic
#51971C #1C8F97 #621C97 #97241C
square
#51971C #1C8F97 #621C97 #97241C
split-complementary
#51971C #241C97 #971C8F
monochromatic
#1A3009 #356312 #51971C #6DCB26 #8DDE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51971C#FFFFFF#000000##000000
##51971C1.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)
#93842A
Tritanopia (blue-blind)
#4F9181
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #51971c;
/* rgb */ color: rgb(81, 151, 28);
/* oklch */ color: oklch(60.7% 0.166 135.4);
Tailwind
colors: {
  custom: {
    50: '#89b664',
    500: '#51971c',
    950: '#000000',
  },
}
SCSS
$custom: #51971c;
$custom-light: #89b664;
$custom-dark: #000000;
JSON
{
  "hex": "#51971c",
  "rgb": {
    "r": 81,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 94.146,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60705,
    "c": 0.16634,
    "h": 135.4
  },
  "luminance": 0.23966
}

Semantic roles & 50–950 ramp

primary
#51971C
secondary
#8F4EC1
accent
#3CECA0
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51971C

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

Preview Lab → · Contrast checker → · Palette generator →

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