#51931C#51931C

#51931C is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 59.6% C 0.161 H 135.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#51931C
RGBrgb(81, 147, 28)
HSLhsl(93, 68%, 34%)
HSVhsv(93, 81%, 58%)
CMYKcmyk(44.9%, 0%, 81%, 42.4%)
CIE-LABlab(54.76, -40.72, 51.65)
CIE-LCHlch(54.76, 65.77, 128.25°)
OKLaboklab(59.65% -0.114 0.1142)
OKLCHoklch(59.65% 0.161 135)
XYZxyz(14.0364, 22.6998, 4.7403)
Luminance0.2270 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51931C #5E1C93
analogous
#8D931C #51931C #1C9322
triadic
#51931C #1C5193 #931C51
tetradic
#51931C #1C8D93 #5E1C93 #93221C
square
#51931C #1C8D93 #5E1C93 #93221C
split-complementary
#51931C #221C93 #931C8D
monochromatic
#182C08 #356012 #51931C #6DC626 #8DDD4C

Accessibility & contrast

On white

3.79
#51931C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#51931C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51931C
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51931C#FFFFFF#000000##000000
##51931C1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#4F8D7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #51931c;
/* rgb */ color: rgb(81, 147, 28);
/* oklch */ color: oklch(59.6% 0.161 135.0);
Tailwind
colors: {
  custom: {
    50: '#88b363',
    500: '#51931c',
    950: '#000000',
  },
}
SCSS
$custom: #51931c;
$custom-light: #88b363;
$custom-dark: #000000;
JSON
{
  "hex": "#51931c",
  "rgb": {
    "r": 81,
    "g": 147,
    "b": 28
  },
  "hsl": {
    "h": 93.277,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59645,
    "c": 0.16143,
    "h": 135
  },
  "luminance": 0.22701
}

Semantic roles & 50–950 ramp

primary
#51931C
secondary
#8C4CBF
accent
#3DEB9D
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51931C

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

Preview Lab → · Contrast checker → · Palette generator →

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