#508F18#508F18

#508F18 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.5% C 0.159 H 134.4°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#508F18
RGBrgb(80, 143, 24)
HSLhsl(92, 71%, 33%)
HSVhsv(92, 83%, 56%)
CMYKcmyk(44.1%, 0%, 83.2%, 43.9%)
CIE-LABlab(53.40, -39.59, 51.57)
CIE-LCHlch(53.40, 65.01, 127.52°)
OKLaboklab(58.51% -0.1112 0.1135)
OKLCHoklch(58.51% 0.159 134.4)
XYZxyz(13.2953, 21.4156, 4.2970)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F18 #57188F
analogous
#8B8F18 #508F18 #188F1C
triadic
#508F18 #18508F #8F1850
tetradic
#508F18 #188B8F #57188F #8F1C18
square
#508F18 #188B8F #57188F #8F1C18
split-complementary
#508F18 #1C188F #8F188B
monochromatic
#152606 #335B0F #508F18 #6DC321 #8CDF42

Accessibility & contrast

On white

3.97
#508F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#508F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F18
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F18#FFFFFF#000000##000000
##508F181.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8C7E26
Tritanopia (blue-blind)
#4F897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f18;
/* rgb */ color: rgb(80, 143, 24);
/* oklch */ color: oklch(58.5% 0.159 134.4);
Tailwind
colors: {
  custom: {
    50: '#87b061',
    500: '#508f18',
    950: '#000000',
  },
}
SCSS
$custom: #508f18;
$custom-light: #87b061;
$custom-dark: #000000;
JSON
{
  "hex": "#508f18",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 91.765,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5851,
    "c": 0.15887,
    "h": 134.4
  },
  "luminance": 0.21416
}

Semantic roles & 50–950 ramp

primary
#508F18
secondary
#8543C0
accent
#3AEE99
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508F18

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

Preview Lab → · Contrast checker → · Palette generator →

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