#51A41F#51A41F

#51A41F is a light, vivid yellow-green. Relative luminance 0.284; OKLCH L 64.2% C 0.181 H 136.9°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#51A41F
RGBrgb(81, 164, 31)
HSLhsl(97, 68%, 38%)
HSVhsv(97, 81%, 64%)
CMYKcmyk(50.6%, 0%, 81.1%, 35.7%)
CIE-LABlab(60.25, -47.40, 55.84)
CIE-LCHlch(60.25, 73.25, 130.33°)
OKLaboklab(64.16% -0.1318 0.1235)
OKLCHoklch(64.16% 0.181 136.9)
XYZxyz(16.9156, 28.3980, 5.8861)
Luminance0.2840 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51A41F #721FA4
analogous
#93A41F #51A41F #1FA430
triadic
#51A41F #1F51A4 #A41F51
tetradic
#51A41F #1F93A4 #721FA4 #A4301F
square
#51A41F #1F93A4 #721FA4 #A4301F
split-complementary
#51A41F #301FA4 #A41F93
monochromatic
#1E3D0C #387115 #51A41F #6BD72A #8EE05D

Accessibility & contrast

On white

3.14
#51A41F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#51A41F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51A41F
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51A41F#FFFFFF#000000##000000
##51A41F1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9500
Deuteranopia (green-blind)
#9F8F2F
Tritanopia (blue-blind)
#4C9E8C
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #51a41f;
/* rgb */ color: rgb(81, 164, 31);
/* oklch */ color: oklch(64.2% 0.181 136.9);
Tailwind
colors: {
  custom: {
    50: '#8ac067',
    500: '#51a41f',
    950: '#000000',
  },
}
SCSS
$custom: #51a41f;
$custom-light: #8ac067;
$custom-dark: #000000;
JSON
{
  "hex": "#51a41f",
  "rgb": {
    "r": 81,
    "g": 164,
    "b": 31
  },
  "hsl": {
    "h": 97.444,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.64158,
    "c": 0.18061,
    "h": 136.9
  },
  "luminance": 0.28399
}

Semantic roles & 50–950 ramp

primary
#51A41F
secondary
#9D5AC5
accent
#3DEBAA
background
#F8FBF6
surface
#F0F7EB
border
#CBD0C6
text
#0D1207
muted
#7D817A

Preview Lab

Preview with #51A41F

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

Preview Lab → · Contrast checker → · Palette generator →

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