#51931F#51931F

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

Color values

HEX#51931F
RGBrgb(81, 147, 31)
HSLhsl(94, 65%, 35%)
HSVhsv(94, 79%, 58%)
CMYKcmyk(44.9%, 0%, 78.9%, 42.4%)
CIE-LABlab(54.78, -40.55, 50.70)
CIE-LCHlch(54.78, 64.93, 128.65°)
OKLaboklab(59.66% -0.1134 0.1127)
OKLCHoklch(59.66% 0.16 135.2)
XYZxyz(14.0741, 22.7149, 4.9389)
Luminance0.2272 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51931F #611F93
analogous
#8B931F #51931F #1F9327
triadic
#51931F #1F5193 #931F51
tetradic
#51931F #1F8B93 #611F93 #93271F
square
#51931F #1F8B93 #611F93 #93271F
split-complementary
#51931F #271F93 #931F8B
monochromatic
#192E0A #356014 #51931F #6DC62A #8DDA52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51931F#FFFFFF#000000##000000
##51931F1.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)
#90812C
Tritanopia (blue-blind)
#4F8D7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #51931f;
/* rgb */ color: rgb(81, 147, 31);
/* oklch */ color: oklch(59.7% 0.160 135.2);
Tailwind
colors: {
  custom: {
    50: '#88b364',
    500: '#51931f',
    950: '#000000',
  },
}
SCSS
$custom: #51931f;
$custom-light: #88b364;
$custom-dark: #000000;
JSON
{
  "hex": "#51931f",
  "rgb": {
    "r": 81,
    "g": 147,
    "b": 31
  },
  "hsl": {
    "h": 94.138,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59663,
    "c": 0.15989,
    "h": 135.2
  },
  "luminance": 0.22716
}

Semantic roles & 50–950 ramp

primary
#51931F
secondary
#8E50BE
accent
#40E8A0
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #51931F

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

Preview Lab → · Contrast checker → · Palette generator →

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