#51A71F#51A71F

#51A71F is a light, vivid yellow-green. Relative luminance 0.295; OKLCH L 64.9% C 0.184 H 137.1°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#51A71F
RGBrgb(81, 167, 31)
HSLhsl(98, 69%, 39%)
HSVhsv(98, 81%, 65%)
CMYKcmyk(51.5%, 0%, 81.4%, 34.5%)
CIE-LABlab(61.21, -48.56, 56.73)
CIE-LCHlch(61.21, 74.67, 130.57°)
OKLaboklab(64.95% -0.1349 0.1253)
OKLCHoklch(64.95% 0.184 137.1)
XYZxyz(17.4588, 29.4844, 6.0671)
Luminance0.2949 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51A71F #751FA7
analogous
#95A71F #51A71F #1FA731
triadic
#51A71F #1F51A7 #A71F51
tetradic
#51A71F #1F95A7 #751FA7 #A7311F
square
#51A71F #1F95A7 #751FA7 #A7311F
split-complementary
#51A71F #311FA7 #A71F95
monochromatic
#1F400C #387315 #51A71F #6BD82B #8FE15F

Accessibility & contrast

On white

3.04
#51A71F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#51A71F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51A71F
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51A71F#FFFFFF#000000##000000
##51A71F1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9800
Deuteranopia (green-blind)
#A2912F
Tritanopia (blue-blind)
#4BA18E
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #51a71f;
/* rgb */ color: rgb(81, 167, 31);
/* oklch */ color: oklch(64.9% 0.184 137.1);
Tailwind
colors: {
  custom: {
    50: '#8bc267',
    500: '#51a71f',
    950: '#000000',
  },
}
SCSS
$custom: #51a71f;
$custom-light: #8bc267;
$custom-dark: #000000;
JSON
{
  "hex": "#51a71f",
  "rgb": {
    "r": 81,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 97.941,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64949,
    "c": 0.18416,
    "h": 137.1
  },
  "luminance": 0.29486
}

Semantic roles & 50–950 ramp

primary
#51A71F
secondary
#9F5CC6
accent
#3CECAB
background
#F9FCF6
surface
#F1F8EB
border
#CBD1C6
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #51A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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