#508F27#508F27

#508F27 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.151 H 135.7°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#508F27
RGBrgb(80, 143, 39)
HSLhsl(96, 57%, 36%)
HSVhsv(96, 73%, 56%)
CMYKcmyk(44.1%, 0%, 72.7%, 43.9%)
CIE-LABlab(53.49, -38.66, 46.52)
CIE-LCHlch(53.49, 60.49, 129.73°)
OKLaboklab(58.61% -0.1077 0.1052)
OKLCHoklch(58.61% 0.151 135.7)
XYZxyz(13.4966, 21.4961, 5.3571)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F27 #66278F
analogous
#848F27 #508F27 #278F32
triadic
#508F27 #27508F #8F2750
tetradic
#508F27 #27848F #66278F #8F3227
square
#508F27 #27848F #66278F #8F3227
split-complementary
#508F27 #32278F #8F2784
monochromatic
#1A2F0D #355F1A #508F27 #6BBF34 #8CD35D

Accessibility & contrast

On white

3.96
#508F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#508F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F27
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F27#FFFFFF#000000##000000
##508F271.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948316
Deuteranopia (green-blind)
#8C7E31
Tritanopia (blue-blind)
#4E8A7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f27;
/* rgb */ color: rgb(80, 143, 39);
/* oklch */ color: oklch(58.6% 0.151 135.7);
Tailwind
colors: {
  custom: {
    50: '#87b068',
    500: '#508f27',
    950: '#000000',
  },
}
SCSS
$custom: #508f27;
$custom-light: #87b068;
$custom-dark: #000000;
JSON
{
  "hex": "#508f27",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 96.346,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58609,
    "c": 0.15054,
    "h": 135.7
  },
  "luminance": 0.21497
}

Semantic roles & 50–950 ramp

primary
#508F27
secondary
#935AB8
accent
#47E0A4
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F27

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

Preview Lab → · Contrast checker → · Palette generator →

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