#51A51F#51A51F

#51A51F is a light, vivid yellow-green. Relative luminance 0.288; OKLCH L 64.4% C 0.182 H 137.0°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#51A51F
RGBrgb(81, 165, 31)
HSLhsl(98, 68%, 38%)
HSVhsv(98, 81%, 65%)
CMYKcmyk(50.9%, 0%, 81.2%, 35.3%)
CIE-LABlab(60.57, -47.79, 56.13)
CIE-LCHlch(60.57, 73.72, 130.41°)
OKLaboklab(64.42% -0.1328 0.1241)
OKLCHoklch(64.42% 0.182 137)
XYZxyz(17.0953, 28.7573, 5.9459)
Luminance0.2876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51A51F #731FA5
analogous
#94A51F #51A51F #1FA530
triadic
#51A51F #1F51A5 #A51F51
tetradic
#51A51F #1F94A5 #731FA5 #A5301F
square
#51A51F #1F94A5 #731FA5 #A5301F
split-complementary
#51A51F #301FA5 #A51F94
monochromatic
#1E3E0C #387115 #51A51F #6BD72A #8FE15E

Accessibility & contrast

On white

3.11
#51A51F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#51A51F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51A51F
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51A51F#FFFFFF#000000##000000
##51A51F1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9600
Deuteranopia (green-blind)
#A08F2F
Tritanopia (blue-blind)
#4C9F8D
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #51a51f;
/* rgb */ color: rgb(81, 165, 31);
/* oklch */ color: oklch(64.4% 0.182 137.0);
Tailwind
colors: {
  custom: {
    50: '#8ac067',
    500: '#51a51f',
    950: '#000000',
  },
}
SCSS
$custom: #51a51f;
$custom-light: #8ac067;
$custom-dark: #000000;
JSON
{
  "hex": "#51a51f",
  "rgb": {
    "r": 81,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 97.612,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64422,
    "c": 0.1818,
    "h": 137
  },
  "luminance": 0.28759
}

Semantic roles & 50–950 ramp

primary
#51A51F
secondary
#9D5BC5
accent
#3DEBAA
background
#F9FBF6
surface
#F1F7EB
border
#CBD0C6
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #51A51F

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

Preview Lab → · Contrast checker → · Palette generator →

#51A51F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva