#508A22#508A22

#508A22 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.147 H 134.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#508A22
RGBrgb(80, 138, 34)
HSLhsl(93, 60%, 34%)
HSVhsv(93, 75%, 54%)
CMYKcmyk(42%, 0%, 75.4%, 45.9%)
CIE-LABlab(51.83, -36.87, 46.78)
CIE-LCHlch(51.83, 59.56, 128.25°)
OKLaboklab(57.24% -0.1032 0.105)
OKLCHoklch(57.24% 0.147 134.5)
XYZxyz(12.6852, 19.9973, 4.7045)
Luminance0.2000 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A22 #5C228A
analogous
#848A22 #508A22 #228A28
triadic
#508A22 #22508A #8A2250
tetradic
#508A22 #22848A #5C228A #8A2822
square
#508A22 #22848A #5C228A #8A2822
split-complementary
#508A22 #28228A #8A2284
monochromatic
#17280A #345916 #508A22 #6CBB2E #8CD452

Accessibility & contrast

On white

4.20
#508A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#508A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A22
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A22#FFFFFF#000000##000000
##508A221.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F0E
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#4F8476
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a22;
/* rgb */ color: rgb(80, 138, 34);
/* oklch */ color: oklch(57.2% 0.147 134.5);
Tailwind
colors: {
  custom: {
    50: '#86ac65',
    500: '#508a22',
    950: '#000000',
  },
}
SCSS
$custom: #508a22;
$custom-light: #86ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#508a22",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 93.462,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57243,
    "c": 0.14721,
    "h": 134.5
  },
  "luminance": 0.19998
}

Semantic roles & 50–950 ramp

primary
#508A22
secondary
#8A50B8
accent
#44E49D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A22

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

Preview Lab → · Contrast checker → · Palette generator →

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