#51981C#51981C

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

Color values

HEX#51981C
RGBrgb(81, 152, 28)
HSLhsl(94, 69%, 35%)
HSVhsv(94, 82%, 60%)
CMYKcmyk(46.7%, 0%, 81.6%, 40.4%)
CIE-LABlab(56.38, -42.78, 53.14)
CIE-LCHlch(56.38, 68.22, 128.84°)
OKLaboklab(60.97% -0.1196 0.1174)
OKLCHoklch(60.97% 0.168 135.5)
XYZxyz(14.8308, 24.2887, 5.0051)
Luminance0.2429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51981C #631C98
analogous
#8F981C #51981C #1C9825
triadic
#51981C #1C5198 #981C51
tetradic
#51981C #1C8F98 #631C98 #98251C
square
#51981C #1C8F98 #631C98 #98251C
split-complementary
#51981C #251C98 #981C8F
monochromatic
#1A3109 #356412 #51981C #6DCC26 #8DDF50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51981C#FFFFFF#000000##000000
##51981C1.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)
#94852B
Tritanopia (blue-blind)
#4E9281
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #51981c;
/* rgb */ color: rgb(81, 152, 28);
/* oklch */ color: oklch(61.0% 0.168 135.5);
Tailwind
colors: {
  custom: {
    50: '#89b764',
    500: '#51981c',
    950: '#000000',
  },
}
SCSS
$custom: #51981c;
$custom-light: #89b764;
$custom-dark: #000000;
JSON
{
  "hex": "#51981c",
  "rgb": {
    "r": 81,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 94.355,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.6097,
    "c": 0.16757,
    "h": 135.5
  },
  "luminance": 0.2429
}

Semantic roles & 50–950 ramp

primary
#51981C
secondary
#904EC1
accent
#3CECA1
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51981C

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

Preview Lab → · Contrast checker → · Palette generator →

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