#508B27#508B27

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

Color values

HEX#508B27
RGBrgb(80, 139, 39)
HSLhsl(95, 56%, 35%)
HSVhsv(95, 72%, 55%)
CMYKcmyk(42.4%, 0%, 71.9%, 45.5%)
CIE-LABlab(52.19, -36.94, 45.20)
CIE-LCHlch(52.19, 58.37, 129.26°)
OKLaboklab(57.55% -0.103 0.1024)
OKLCHoklch(57.55% 0.145 135.2)
XYZxyz(12.9068, 20.3165, 5.1605)
Luminance0.2032 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B27 #62278B
analogous
#828B27 #508B27 #278B30
triadic
#508B27 #27508B #8B2750
tetradic
#508B27 #27828B #62278B #8B3027
square
#508B27 #27828B #62278B #8B3027
split-complementary
#508B27 #30278B #8B2782
monochromatic
#192B0C #345B1A #508B27 #6CBB34 #8CD15B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508B27#FFFFFF#000000##000000
##508B271.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)
#908017
Deuteranopia (green-blind)
#887B30
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b27;
/* rgb */ color: rgb(80, 139, 39);
/* oklch */ color: oklch(57.5% 0.145 135.2);
Tailwind
colors: {
  custom: {
    50: '#86ad67',
    500: '#508b27',
    950: '#000000',
  },
}
SCSS
$custom: #508b27;
$custom-light: #86ad67;
$custom-dark: #000000;
JSON
{
  "hex": "#508b27",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 95.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57548,
    "c": 0.14527,
    "h": 135.2
  },
  "luminance": 0.20317
}

Semantic roles & 50–950 ramp

primary
#508B27
secondary
#8F58B6
accent
#48DFA2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B27

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

Preview Lab → · Contrast checker → · Palette generator →

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