#51AA21#51AA21

#51AA21 is a light, vivid yellow-green. Relative luminance 0.306; OKLCH L 65.7% C 0.187 H 137.5°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#51AA21
RGBrgb(81, 170, 33)
HSLhsl(99, 67%, 40%)
HSVhsv(99, 81%, 67%)
CMYKcmyk(52.4%, 0%, 80.6%, 33.3%)
CIE-LABlab(62.17, -49.60, 57.04)
CIE-LCHlch(62.17, 75.59, 131.01°)
OKLaboklab(65.75% -0.1376 0.1263)
OKLCHoklch(65.75% 0.187 137.5)
XYZxyz(18.0420, 30.6072, 6.3956)
Luminance0.3061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51AA21 #7A21AA
analogous
#96AA21 #51AA21 #21AA35
triadic
#51AA21 #2151AA #AA2151
tetradic
#51AA21 #2196AA #7A21AA #AA3521
square
#51AA21 #2196AA #7A21AA #AA3521
split-complementary
#51AA21 #3521AA #AA2196
monochromatic
#20430D #397717 #51AA21 #6BD731 #90E164

Accessibility & contrast

On white

2.95
#51AA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#51AA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #51AA21
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51AA21#FFFFFF#000000##000000
##51AA211.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#A49431
Tritanopia (blue-blind)
#4BA491
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #51aa21;
/* rgb */ color: rgb(81, 170, 33);
/* oklch */ color: oklch(65.7% 0.187 137.5);
Tailwind
colors: {
  custom: {
    50: '#8bc469',
    500: '#51aa21',
    950: '#000000',
  },
}
SCSS
$custom: #51aa21;
$custom-light: #8bc469;
$custom-dark: #000000;
JSON
{
  "hex": "#51aa21",
  "rgb": {
    "r": 81,
    "g": 170,
    "b": 33
  },
  "hsl": {
    "h": 98.978,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.65749,
    "c": 0.18678,
    "h": 137.5
  },
  "luminance": 0.30609
}

Semantic roles & 50–950 ramp

primary
#51AA21
secondary
#A361C6
accent
#3DEAAE
background
#F9FCF6
surface
#F1F8EB
border
#CBD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #51AA21

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

Preview Lab → · Contrast checker → · Palette generator →

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