#508B22#508B22

#508B22 is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.149 H 134.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#508B22
RGBrgb(80, 139, 34)
HSLhsl(94, 61%, 34%)
HSVhsv(94, 76%, 55%)
CMYKcmyk(42.4%, 0%, 75.5%, 45.5%)
CIE-LABlab(52.16, -37.30, 47.10)
CIE-LCHlch(52.16, 60.08, 128.38°)
OKLaboklab(57.51% -0.1044 0.1057)
OKLCHoklch(57.51% 0.149 134.6)
XYZxyz(12.8294, 20.2855, 4.7526)
Luminance0.2029 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B22 #5D228B
analogous
#858B22 #508B22 #228B28
triadic
#508B22 #22508B #8B2250
tetradic
#508B22 #22858B #5D228B #8B2822
square
#508B22 #22858B #5D228B #8B2822
split-complementary
#508B22 #28228B #8B2285
monochromatic
#17290A #345A16 #508B22 #6CBC2E #8CD553

Accessibility & contrast

On white

4.15
#508B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#508B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B22
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B22#FFFFFF#000000##000000
##508B221.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#887B2C
Tritanopia (blue-blind)
#4F8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b22;
/* rgb */ color: rgb(80, 139, 34);
/* oklch */ color: oklch(57.5% 0.149 134.6);
Tailwind
colors: {
  custom: {
    50: '#86ad65',
    500: '#508b22',
    950: '#000000',
  },
}
SCSS
$custom: #508b22;
$custom-light: #86ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#508b22",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 93.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57508,
    "c": 0.14852,
    "h": 134.6
  },
  "luminance": 0.20286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #508B22

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

Preview Lab → · Contrast checker → · Palette generator →

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