#51981F#51981F

#51981F is a mid, vivid yellow-green. Relative luminance 0.243; OKLCH L 61.0% C 0.166 H 135.7°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#51981F
RGBrgb(81, 152, 31)
HSLhsl(95, 66%, 36%)
HSVhsv(95, 80%, 60%)
CMYKcmyk(46.7%, 0%, 79.6%, 40.4%)
CIE-LABlab(56.39, -42.62, 52.23)
CIE-LCHlch(56.39, 67.41, 129.21°)
OKLaboklab(60.99% -0.119 0.1159)
OKLCHoklch(60.99% 0.166 135.7)
XYZxyz(14.8685, 24.3038, 5.2037)
Luminance0.2430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51981F #661F98
analogous
#8D981F #51981F #1F982A
triadic
#51981F #1F5198 #981F51
tetradic
#51981F #1F8D98 #661F98 #982A1F
square
#51981F #1F8D98 #661F98 #982A1F
split-complementary
#51981F #2A1F98 #981F8D
monochromatic
#1B320A #366515 #51981F #6CCB29 #8DDC55

Accessibility & contrast

On white

3.58
#51981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#51981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51981F
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51981F#FFFFFF#000000##000000
##51981F1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#4E9282
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #51981f;
/* rgb */ color: rgb(81, 152, 31);
/* oklch */ color: oklch(61.0% 0.166 135.7);
Tailwind
colors: {
  custom: {
    50: '#89b765',
    500: '#51981f',
    950: '#000000',
  },
}
SCSS
$custom: #51981f;
$custom-light: #89b765;
$custom-dark: #000000;
JSON
{
  "hex": "#51981f",
  "rgb": {
    "r": 81,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 95.207,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60987,
    "c": 0.16611,
    "h": 135.7
  },
  "luminance": 0.24305
}

Semantic roles & 50–950 ramp

primary
#51981F
secondary
#9353C0
accent
#3FE9A3
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51981F

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

Preview Lab → · Contrast checker → · Palette generator →

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