#508E27#508E27

#508E27 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.149 H 135.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#508E27
RGBrgb(80, 142, 39)
HSLhsl(96, 57%, 35%)
HSVhsv(96, 73%, 56%)
CMYKcmyk(43.7%, 0%, 72.5%, 44.3%)
CIE-LABlab(53.16, -38.23, 46.19)
CIE-LCHlch(53.16, 59.96, 129.62°)
OKLaboklab(58.34% -0.1065 0.1045)
OKLCHoklch(58.34% 0.149 135.5)
XYZxyz(13.3472, 21.1972, 5.3072)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E27 #65278E
analogous
#838E27 #508E27 #278E32
triadic
#508E27 #27508E #8E2750
tetradic
#508E27 #27838E #65278E #8E3227
square
#508E27 #27838E #65278E #8E3227
split-complementary
#508E27 #32278E #8E2783
monochromatic
#1A2E0D #355E1A #508E27 #6BBE34 #8CD25D

Accessibility & contrast

On white

4.01
#508E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#508E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E27
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E27#FFFFFF#000000##000000
##508E271.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938216
Deuteranopia (green-blind)
#8B7D31
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e27;
/* rgb */ color: rgb(80, 142, 39);
/* oklch */ color: oklch(58.3% 0.149 135.5);
Tailwind
colors: {
  custom: {
    50: '#87af68',
    500: '#508e27',
    950: '#000000',
  },
}
SCSS
$custom: #508e27;
$custom-light: #87af68;
$custom-dark: #000000;
JSON
{
  "hex": "#508e27",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 39
  },
  "hsl": {
    "h": 96.117,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58344,
    "c": 0.14923,
    "h": 135.5
  },
  "luminance": 0.21198
}

Semantic roles & 50–950 ramp

primary
#508E27
secondary
#9259B8
accent
#48E0A3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E27

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

Preview Lab → · Contrast checker → · Palette generator →

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