#51AD1F#51AD1F

#51AD1F is a light, vivid yellow-green. Relative luminance 0.317; OKLCH L 66.5% C 0.191 H 137.5°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#51AD1F
RGBrgb(81, 173, 31)
HSLhsl(99, 70%, 40%)
HSVhsv(99, 82%, 68%)
CMYKcmyk(53.2%, 0%, 82.1%, 32.2%)
CIE-LABlab(63.12, -50.84, 58.49)
CIE-LCHlch(63.12, 77.50, 131.00°)
OKLaboklab(66.53% -0.141 0.129)
OKLCHoklch(66.53% 0.191 137.5)
XYZxyz(18.5836, 31.7340, 6.4421)
Luminance0.3174 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51AD1F #7B1FAD
analogous
#98AD1F #51AD1F #1FAD34
triadic
#51AD1F #1F51AD #AD1F51
tetradic
#51AD1F #1F98AD #7B1FAD #AD341F
square
#51AD1F #1F98AD #7B1FAD #AD341F
split-complementary
#51AD1F #341FAD #AD1F98
monochromatic
#20450C #397916 #51AD1F #6BDA2F #90E363

Accessibility & contrast

On white

2.86
#51AD1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#51AD1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #51AD1F
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51AD1F#FFFFFF#000000##000000
##51AD1F1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39D00
Deuteranopia (green-blind)
#A79631
Tritanopia (blue-blind)
#4AA793
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #51ad1f;
/* rgb */ color: rgb(81, 173, 31);
/* oklch */ color: oklch(66.5% 0.191 137.5);
Tailwind
colors: {
  custom: {
    50: '#8cc668',
    500: '#51ad1f',
    950: '#000000',
  },
}
SCSS
$custom: #51ad1f;
$custom-light: #8cc668;
$custom-dark: #000000;
JSON
{
  "hex": "#51ad1f",
  "rgb": {
    "r": 81,
    "g": 173,
    "b": 31
  },
  "hsl": {
    "h": 98.873,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.66528,
    "c": 0.19116,
    "h": 137.5
  },
  "luminance": 0.31735
}

Semantic roles & 50–950 ramp

primary
#51AD1F
secondary
#A360C8
accent
#3BECAE
background
#F9FCF6
surface
#F1F8EB
border
#CBD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #51AD1F

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

Preview Lab → · Contrast checker → · Palette generator →

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