#508A21#508A21

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

Color values

HEX#508A21
RGBrgb(80, 138, 33)
HSLhsl(93, 61%, 34%)
HSVhsv(93, 76%, 54%)
CMYKcmyk(42%, 0%, 76.1%, 45.9%)
CIE-LABlab(51.83, -36.94, 47.14)
CIE-LCHlch(51.83, 59.89, 128.08°)
OKLaboklab(57.24% -0.1034 0.1056)
OKLCHoklch(57.24% 0.148 134.4)
XYZxyz(12.6710, 19.9916, 4.6297)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A21 #5B218A
analogous
#848A21 #508A21 #218A26
triadic
#508A21 #21508A #8A2150
tetradic
#508A21 #21848A #5B218A #8A2621
square
#508A21 #21848A #5B218A #8A2621
split-complementary
#508A21 #26218A #8A2184
monochromatic
#172709 #335915 #508A21 #6DBB2D #8CD550

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508A21#FFFFFF#000000##000000
##508A211.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)
#8F7F0B
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#4F8476
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a21;
/* rgb */ color: rgb(80, 138, 33);
/* oklch */ color: oklch(57.2% 0.148 134.4);
Tailwind
colors: {
  custom: {
    50: '#86ac64',
    500: '#508a21',
    950: '#000000',
  },
}
SCSS
$custom: #508a21;
$custom-light: #86ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#508a21",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 93.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57235,
    "c": 0.14782,
    "h": 134.4
  },
  "luminance": 0.19992
}

Semantic roles & 50–950 ramp

primary
#508A21
secondary
#894EB9
accent
#43E59C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A21

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

Preview Lab → · Contrast checker → · Palette generator →

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