#508F28#508F28

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

Color values

HEX#508F28
RGBrgb(80, 143, 40)
HSLhsl(97, 56%, 36%)
HSVhsv(97, 72%, 56%)
CMYKcmyk(44.1%, 0%, 72%, 43.9%)
CIE-LABlab(53.50, -38.59, 46.13)
CIE-LCHlch(53.50, 60.14, 129.91°)
OKLaboklab(58.62% -0.1074 0.1045)
OKLCHoklch(58.62% 0.15 135.8)
XYZxyz(13.5134, 21.5028, 5.4455)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F28 #67288F
analogous
#838F28 #508F28 #288F33
triadic
#508F28 #28508F #8F2850
tetradic
#508F28 #28838F #67288F #8F3328
square
#508F28 #28838F #67288F #8F3328
split-complementary
#508F28 #33288F #8F2883
monochromatic
#1A2F0D #355F1B #508F28 #6BBF35 #8CD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508F28#FFFFFF#000000##000000
##508F281.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)
#948317
Deuteranopia (green-blind)
#8C7E32
Tritanopia (blue-blind)
#4E8A7B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f28;
/* rgb */ color: rgb(80, 143, 40);
/* oklch */ color: oklch(58.6% 0.150 135.8);
Tailwind
colors: {
  custom: {
    50: '#87b068',
    500: '#508f28',
    950: '#000000',
  },
}
SCSS
$custom: #508f28;
$custom-light: #87b068;
$custom-dark: #000000;
JSON
{
  "hex": "#508f28",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 96.699,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.58617,
    "c": 0.14987,
    "h": 135.8
  },
  "luminance": 0.21504
}

Semantic roles & 50–950 ramp

primary
#508F28
secondary
#945BB8
accent
#48E0A5
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F28

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

Preview Lab → · Contrast checker → · Palette generator →

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