#508C26#508C26

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

Color values

HEX#508C26
RGBrgb(80, 140, 38)
HSLhsl(95, 57%, 35%)
HSVhsv(95, 73%, 55%)
CMYKcmyk(42.9%, 0%, 72.9%, 45.1%)
CIE-LABlab(52.51, -37.45, 45.92)
CIE-LCHlch(52.51, 59.25, 129.20°)
OKLaboklab(57.8% -0.1045 0.1038)
OKLCHoklch(57.8% 0.147 135.2)
XYZxyz(13.0359, 20.6009, 5.1228)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C26 #62268C
analogous
#838C26 #508C26 #268C2F
triadic
#508C26 #26508C #8C2650
tetradic
#508C26 #26838C #62268C #8C2F26
square
#508C26 #26838C #62268C #8C2F26
split-complementary
#508C26 #2F268C #8C2683
monochromatic
#192C0C #345C19 #508C26 #6CBC33 #8CD25A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508C26#FFFFFF#000000##000000
##508C261.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)
#918015
Deuteranopia (green-blind)
#897B30
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c26;
/* rgb */ color: rgb(80, 140, 38);
/* oklch */ color: oklch(57.8% 0.147 135.2);
Tailwind
colors: {
  custom: {
    50: '#86ae67',
    500: '#508c26',
    950: '#000000',
  },
}
SCSS
$custom: #508c26;
$custom-light: #86ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#508c26",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 38
  },
  "hsl": {
    "h": 95.294,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57805,
    "c": 0.14726,
    "h": 135.2
  },
  "luminance": 0.20602
}

Semantic roles & 50–950 ramp

primary
#508C26
secondary
#8F57B7
accent
#47E1A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C26

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

Preview Lab → · Contrast checker → · Palette generator →

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