#509D21#509D21

#509D21 is a light, vivid yellow-green. Relative luminance 0.259; OKLCH L 62.3% C 0.172 H 136.6°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#509D21
RGBrgb(80, 157, 33)
HSLhsl(97, 65%, 37%)
HSVhsv(97, 79%, 62%)
CMYKcmyk(49%, 0%, 79%, 38.4%)
CIE-LABlab(57.97, -44.84, 53.07)
CIE-LCHlch(57.97, 69.48, 130.20°)
OKLaboklab(62.28% -0.1248 0.118)
OKLCHoklch(62.28% 0.172 136.6)
XYZxyz(15.6393, 25.9282, 5.6191)
Luminance0.2593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#509D21 #6E219D
analogous
#8E9D21 #509D21 #219D30
triadic
#509D21 #21509D #9D2150
tetradic
#509D21 #218E9D #6E219D #9D3021
square
#509D21 #218E9D #6E219D #9D3021
split-complementary
#509D21 #30219D #9D218E
monochromatic
#1C380C #366A16 #509D21 #6AD02C #8DDD5C

Accessibility & contrast

On white

3.39
#509D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#509D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #509D21
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##509D21#FFFFFF#000000##000000
##509D211.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#98892F
Tritanopia (blue-blind)
#4C9786
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #509d21;
/* rgb */ color: rgb(80, 157, 33);
/* oklch */ color: oklch(62.3% 0.172 136.6);
Tailwind
colors: {
  custom: {
    50: '#89ba67',
    500: '#509d21',
    950: '#000000',
  },
}
SCSS
$custom: #509d21;
$custom-light: #89ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#509d21",
  "rgb": {
    "r": 80,
    "g": 157,
    "b": 33
  },
  "hsl": {
    "h": 97.258,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62276,
    "c": 0.17172,
    "h": 136.6
  },
  "luminance": 0.25929
}

Semantic roles & 50–950 ramp

primary
#509D21
secondary
#9A59C1
accent
#40E8A8
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #509D21

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

Preview Lab → · Contrast checker → · Palette generator →

#509D21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva