#508F2D#508F2D

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

Color values

HEX#508F2D
RGBrgb(80, 143, 45)
HSLhsl(99, 52%, 37%)
HSVhsv(99, 69%, 56%)
CMYKcmyk(44.1%, 0%, 68.5%, 43.9%)
CIE-LABlab(53.53, -38.17, 44.11)
CIE-LCHlch(53.53, 58.33, 130.87°)
OKLaboklab(58.66% -0.1059 0.101)
OKLCHoklch(58.66% 0.146 136.4)
XYZxyz(13.6040, 21.5391, 5.9227)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F2D #6C2D8F
analogous
#818F2D #508F2D #2D8F3B
triadic
#508F2D #2D508F #8F2D50
tetradic
#508F2D #2D818F #6C2D8F #8F3B2D
square
#508F2D #2D818F #6C2D8F #8F3B2D
split-complementary
#508F2D #3B2D8F #8F2D81
monochromatic
#1C3210 #36601E #508F2D #6ABE3C #8CCF67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508F2D#FFFFFF#000000##000000
##508F2D1.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)
#948320
Deuteranopia (green-blind)
#8B7E36
Tritanopia (blue-blind)
#4D8A7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f2d;
/* rgb */ color: rgb(80, 143, 45);
/* oklch */ color: oklch(58.7% 0.146 136.4);
Tailwind
colors: {
  custom: {
    50: '#86b06b',
    500: '#508f2d',
    950: '#000000',
  },
}
SCSS
$custom: #508f2d;
$custom-light: #86b06b;
$custom-dark: #000000;
JSON
{
  "hex": "#508f2d",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 98.571,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58662,
    "c": 0.14632,
    "h": 136.4
  },
  "luminance": 0.2154
}

Semantic roles & 50–950 ramp

primary
#508F2D
secondary
#9862B6
accent
#4CDCA8
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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