#508118#508118

#508118 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.8% C 0.141 H 132.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#508118
RGBrgb(80, 129, 24)
HSLhsl(88, 69%, 30%)
HSVhsv(88, 81%, 51%)
CMYKcmyk(38%, 0%, 81.4%, 49.4%)
CIE-LABlab(48.85, -33.49, 47.38)
CIE-LCHlch(48.85, 58.02, 125.26°)
OKLaboklab(54.78% -0.0948 0.1047)
OKLCHoklch(54.78% 0.141 132.2)
XYZxyz(11.3233, 17.4714, 3.6397)
Luminance0.1747 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508118 #491881
analogous
#817D18 #508118 #1C8118
triadic
#508118 #185081 #811850
tetradic
#508118 #18817D #491881 #81181C
square
#508118 #18817D #491881 #81181C
split-complementary
#508118 #181C81 #7D1881
monochromatic
#101A05 #304D0E #508118 #70B522 #8FDA39

Accessibility & contrast

On white

4.67
#508118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#508118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #508118
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508118#FFFFFF#000000##FFFFFF
##5081181.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#807324
Tritanopia (blue-blind)
#517B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #508118;
/* rgb */ color: rgb(80, 129, 24);
/* oklch */ color: oklch(54.8% 0.141 132.2);
Tailwind
colors: {
  custom: {
    50: '#86a65f',
    500: '#508118',
    950: '#000000',
  },
}
SCSS
$custom: #508118;
$custom-light: #86a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#508118",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 88,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.54782,
    "c": 0.14122,
    "h": 132.2
  },
  "luminance": 0.17472
}

Semantic roles & 50–950 ramp

primary
#508118
secondary
#7640B5
accent
#3CEB8E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #508118

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

Preview Lab → · Contrast checker → · Palette generator →

#508118 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva