#51931B#51931B

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

Color values

HEX#51931B
RGBrgb(81, 147, 27)
HSLhsl(93, 69%, 34%)
HSVhsv(93, 82%, 58%)
CMYKcmyk(44.9%, 0%, 81.6%, 42.4%)
CIE-LABlab(54.76, -40.77, 51.95)
CIE-LCHlch(54.76, 66.04, 128.13°)
OKLaboklab(59.64% -0.1142 0.1147)
OKLCHoklch(59.64% 0.162 134.9)
XYZxyz(14.0246, 22.6951, 4.6783)
Luminance0.2270 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51931B #5D1B93
analogous
#8D931B #51931B #1B9321
triadic
#51931B #1B5193 #931B51
tetradic
#51931B #1B8D93 #5D1B93 #93211B
square
#51931B #1B8D93 #5D1B93 #93211B
split-complementary
#51931B #211B93 #931B8D
monochromatic
#182C08 #355F12 #51931B #6DC724 #8DDE4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51931B#FFFFFF#000000##000000
##51931B1.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)
#908129
Tritanopia (blue-blind)
#4F8D7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #51931b;
/* rgb */ color: rgb(81, 147, 27);
/* oklch */ color: oklch(59.6% 0.162 134.9);
Tailwind
colors: {
  custom: {
    50: '#88b363',
    500: '#51931b',
    950: '#000000',
  },
}
SCSS
$custom: #51931b;
$custom-light: #88b363;
$custom-dark: #000000;
JSON
{
  "hex": "#51931b",
  "rgb": {
    "r": 81,
    "g": 147,
    "b": 27
  },
  "hsl": {
    "h": 93,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59639,
    "c": 0.1619,
    "h": 134.9
  },
  "luminance": 0.22696
}

Semantic roles & 50–950 ramp

primary
#51931B
secondary
#8B4AC0
accent
#3CEC9D
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51931B

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

Preview Lab → · Contrast checker → · Palette generator →

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