#508C28#508C28

#508C28 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.146 H 135.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#508C28
RGBrgb(80, 140, 40)
HSLhsl(96, 56%, 35%)
HSVhsv(96, 71%, 55%)
CMYKcmyk(42.9%, 0%, 71.4%, 45.1%)
CIE-LABlab(52.52, -37.29, 45.13)
CIE-LCHlch(52.52, 58.55, 129.57°)
OKLaboklab(57.82% -0.1039 0.1024)
OKLCHoklch(57.82% 0.146 135.4)
XYZxyz(13.0690, 20.6141, 5.2974)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C28 #64288C
analogous
#828C28 #508C28 #288C32
triadic
#508C28 #28508C #8C2850
tetradic
#508C28 #28828C #64288C #8C3228
square
#508C28 #28828C #64288C #8C3228
split-complementary
#508C28 #32288C #8C2882
monochromatic
#1A2D0D #355C1A #508C28 #6BBC36 #8CD15E

Accessibility & contrast

On white

4.10
#508C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#508C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C28
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C28#FFFFFF#000000##000000
##508C281.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918018
Deuteranopia (green-blind)
#897C31
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c28;
/* rgb */ color: rgb(80, 140, 40);
/* oklch */ color: oklch(57.8% 0.146 135.4);
Tailwind
colors: {
  custom: {
    50: '#86ae68',
    500: '#508c28',
    950: '#000000',
  },
}
SCSS
$custom: #508c28;
$custom-light: #86ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#508c28",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 40
  },
  "hsl": {
    "h": 96,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.1459,
    "h": 135.4
  },
  "luminance": 0.20615
}

Semantic roles & 50–950 ramp

primary
#508C28
secondary
#915AB6
accent
#49DFA3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C28

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

Preview Lab → · Contrast checker → · Palette generator →

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