#508C22#508C22

#508C22 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.150 H 134.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#508C22
RGBrgb(80, 140, 34)
HSLhsl(94, 61%, 34%)
HSVhsv(94, 76%, 55%)
CMYKcmyk(42.9%, 0%, 75.7%, 45.1%)
CIE-LABlab(52.48, -37.74, 47.42)
CIE-LCHlch(52.48, 60.60, 128.51°)
OKLaboklab(57.77% -0.1055 0.1063)
OKLCHoklch(57.77% 0.15 134.8)
XYZxyz(12.9748, 20.5764, 4.8010)
Luminance0.2058 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C22 #5E228C
analogous
#858C22 #508C22 #228C29
triadic
#508C22 #22508C #8C2250
tetradic
#508C22 #22858C #5E228C #8C2922
square
#508C22 #22858C #5E228C #8C2922
split-complementary
#508C22 #29228C #8C2285
monochromatic
#182A0A #345B16 #508C22 #6CBD2E #8CD553

Accessibility & contrast

On white

4.11
#508C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#508C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C22
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C22#FFFFFF#000000##000000
##508C221.004.115.125.12
#FFFFFF4.111.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#4F8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c22;
/* rgb */ color: rgb(80, 140, 34);
/* oklch */ color: oklch(57.8% 0.150 134.8);
Tailwind
colors: {
  custom: {
    50: '#87ae65',
    500: '#508c22',
    950: '#000000',
  },
}
SCSS
$custom: #508c22;
$custom-light: #87ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#508c22",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 93.962,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57774,
    "c": 0.14982,
    "h": 134.8
  },
  "luminance": 0.20577
}

Semantic roles & 50–950 ramp

primary
#508C22
secondary
#8C51B9
accent
#44E49E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C22

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

Preview Lab → · Contrast checker → · Palette generator →

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