#509B1F#509B1F

#509B1F is a mid, vivid yellow-green. Relative luminance 0.252; OKLCH L 61.7% C 0.170 H 136.3°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#509B1F
RGBrgb(80, 155, 31)
HSLhsl(96, 67%, 36%)
HSVhsv(96, 80%, 61%)
CMYKcmyk(48.4%, 0%, 80%, 39.2%)
CIE-LABlab(57.31, -44.16, 53.09)
CIE-LCHlch(57.31, 69.05, 129.75°)
OKLaboklab(61.73% -0.123 0.1177)
OKLCHoklch(61.73% 0.17 136.3)
XYZxyz(15.2765, 25.2461, 5.3641)
Luminance0.2525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#509B1F #6A1F9B
analogous
#8E9B1F #509B1F #1F9B2C
triadic
#509B1F #1F509B #9B1F50
tetradic
#509B1F #1F8E9B #6A1F9B #9B2C1F
square
#509B1F #1F8E9B #6A1F9B #9B2C1F
split-complementary
#509B1F #2C1F9B #9B1F8E
monochromatic
#1B350B #366815 #509B1F #6ACE29 #8CDD57

Accessibility & contrast

On white

3.47
#509B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#509B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #509B1F
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##509B1F#FFFFFF#000000##000000
##509B1F1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18D00
Deuteranopia (green-blind)
#97872D
Tritanopia (blue-blind)
#4C9584
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #509b1f;
/* rgb */ color: rgb(80, 155, 31);
/* oklch */ color: oklch(61.7% 0.170 136.3);
Tailwind
colors: {
  custom: {
    50: '#89b966',
    500: '#509b1f',
    950: '#000000',
  },
}
SCSS
$custom: #509b1f;
$custom-light: #89b966;
$custom-dark: #000000;
JSON
{
  "hex": "#509b1f",
  "rgb": {
    "r": 80,
    "g": 155,
    "b": 31
  },
  "hsl": {
    "h": 96.29,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61734,
    "c": 0.17029,
    "h": 136.3
  },
  "luminance": 0.25247
}

Semantic roles & 50–950 ramp

primary
#509B1F
secondary
#9655C1
accent
#3EEAA6
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #509B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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