#509D12#509D12

#509D12 is a light, vivid yellow-green. Relative luminance 0.259; OKLCH L 62.2% C 0.178 H 135.7°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#509D12
RGBrgb(80, 157, 18)
HSLhsl(93, 79%, 34%)
HSVhsv(93, 89%, 62%)
CMYKcmyk(49%, 0%, 88.5%, 38.4%)
CIE-LABlab(57.91, -45.54, 57.03)
CIE-LCHlch(57.91, 72.98, 128.61°)
OKLaboklab(62.2% -0.1274 0.1242)
OKLCHoklch(62.2% 0.178 135.7)
XYZxyz(15.4740, 25.8620, 4.7486)
Luminance0.2586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#509D12 #5F129D
analogous
#969D12 #509D12 #129D19
triadic
#509D12 #12509D #9D1250
tetradic
#509D12 #12969D #5F129D #9D1912
square
#509D12 #12969D #5F129D #9D1912
split-complementary
#509D12 #19129D #9D1296
monochromatic
#182F05 #34660C #509D12 #6CD418 #8CE940

Accessibility & contrast

On white

3.40
#509D12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#509D12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #509D12
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##509D12#FFFFFF#000000##000000
##509D121.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#4D9785
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #509d12;
/* rgb */ color: rgb(80, 157, 18);
/* oklch */ color: oklch(62.2% 0.178 135.7);
Tailwind
colors: {
  custom: {
    50: '#89ba61',
    500: '#509d12',
    950: '#000000',
  },
}
SCSS
$custom: #509d12;
$custom-light: #89ba61;
$custom-dark: #000000;
JSON
{
  "hex": "#509d12",
  "rgb": {
    "r": 80,
    "g": 157,
    "b": 18
  },
  "hsl": {
    "h": 93.237,
    "s": 79.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62204,
    "c": 0.17791,
    "h": 135.7
  },
  "luminance": 0.25863
}

Semantic roles & 50–950 ramp

primary
#509D12
secondary
#8D42C9
accent
#32F69E
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #509D12

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

Preview Lab → · Contrast checker → · Palette generator →

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