#51A81F#51A81F

#51A81F is a light, vivid yellow-green. Relative luminance 0.299; OKLCH L 65.2% C 0.185 H 137.2°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#51A81F
RGBrgb(81, 168, 31)
HSLhsl(98, 69%, 39%)
HSVhsv(98, 82%, 66%)
CMYKcmyk(51.8%, 0%, 81.5%, 34.1%)
CIE-LABlab(61.53, -48.95, 57.02)
CIE-LCHlch(61.53, 75.15, 130.64°)
OKLaboklab(65.21% -0.1359 0.126)
OKLCHoklch(65.21% 0.185 137.2)
XYZxyz(17.6427, 29.8522, 6.1284)
Luminance0.2985 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51A81F #761FA8
analogous
#96A81F #51A81F #1FA832
triadic
#51A81F #1F51A8 #A81F51
tetradic
#51A81F #1F96A8 #761FA8 #A8321F
square
#51A81F #1F96A8 #761FA8 #A8321F
split-complementary
#51A81F #321FA8 #A81F96
monochromatic
#1F410C #387415 #51A81F #6BD82C #8FE260

Accessibility & contrast

On white

3.01
#51A81F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#51A81F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51A81F
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51A81F#FFFFFF#000000##000000
##51A81F1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9900
Deuteranopia (green-blind)
#A39230
Tritanopia (blue-blind)
#4BA28F
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #51a81f;
/* rgb */ color: rgb(81, 168, 31);
/* oklch */ color: oklch(65.2% 0.185 137.2);
Tailwind
colors: {
  custom: {
    50: '#8bc267',
    500: '#51a81f',
    950: '#000000',
  },
}
SCSS
$custom: #51a81f;
$custom-light: #8bc267;
$custom-dark: #000000;
JSON
{
  "hex": "#51a81f",
  "rgb": {
    "r": 81,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 98.102,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.65212,
    "c": 0.18533,
    "h": 137.2
  },
  "luminance": 0.29854
}

Semantic roles & 50–950 ramp

primary
#51A81F
secondary
#A05DC6
accent
#3CECAC
background
#F9FCF6
surface
#F1F8EB
border
#CBD1C6
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #51A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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