#508F2B#508F2B

#508F2B is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.148 H 136.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#508F2B
RGBrgb(80, 143, 43)
HSLhsl(98, 54%, 36%)
HSVhsv(98, 70%, 56%)
CMYKcmyk(44.1%, 0%, 69.9%, 43.9%)
CIE-LABlab(53.52, -38.34, 44.93)
CIE-LCHlch(53.52, 59.07, 130.48°)
OKLaboklab(58.64% -0.1065 0.1024)
OKLCHoklch(58.64% 0.148 136.1)
XYZxyz(13.5664, 21.5240, 5.7247)
Luminance0.2152 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F2B #6A2B8F
analogous
#828F2B #508F2B #2B8F38
triadic
#508F2B #2B508F #8F2B50
tetradic
#508F2B #2B828F #6A2B8F #8F382B
square
#508F2B #2B828F #6A2B8F #8F382B
split-complementary
#508F2B #382B8F #8F2B82
monochromatic
#1B310F #36601D #508F2B #6ABE39 #8CD064

Accessibility & contrast

On white

3.96
#508F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#508F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F2B
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F2B#FFFFFF#000000##000000
##508F2B1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831C
Deuteranopia (green-blind)
#8C7E34
Tritanopia (blue-blind)
#4E8A7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f2b;
/* rgb */ color: rgb(80, 143, 43);
/* oklch */ color: oklch(58.6% 0.148 136.1);
Tailwind
colors: {
  custom: {
    50: '#86b06a',
    500: '#508f2b',
    950: '#000000',
  },
}
SCSS
$custom: #508f2b;
$custom-light: #86b06a;
$custom-dark: #000000;
JSON
{
  "hex": "#508f2b",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 97.8,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58643,
    "c": 0.14778,
    "h": 136.1
  },
  "luminance": 0.21525
}

Semantic roles & 50–950 ramp

primary
#508F2B
secondary
#965FB7
accent
#4BDDA7
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508F2B

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

Preview Lab → · Contrast checker → · Palette generator →

#508F2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva