#507D28#507D28

#507D28 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.8% C 0.125 H 133.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#507D28
RGBrgb(80, 125, 40)
HSLhsl(92, 52%, 32%)
HSVhsv(92, 68%, 49%)
CMYKcmyk(36%, 0%, 68%, 51%)
CIE-LABlab(47.66, -30.54, 40.02)
CIE-LCHlch(47.66, 50.34, 127.35°)
OKLaboklab(53.84% -0.0855 0.0917)
OKLCHoklch(53.84% 0.125 133)
XYZxyz(11.0247, 16.5255, 4.6159)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D28 #55287D
analogous
#7A7D28 #507D28 #287D2B
triadic
#507D28 #28507D #7D2850
tetradic
#507D28 #287A7D #55287D #7D2B28
square
#507D28 #287A7D #55287D #7D2B28
split-complementary
#507D28 #2B287D #7D287A
monochromatic
#15200A #324F19 #507D28 #6EAB37 #8CC956

Accessibility & contrast

On white

4.88
#507D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#507D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507D28
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507D28#FFFFFF#000000##FFFFFF
##507D281.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731D
Deuteranopia (green-blind)
#7C702F
Tritanopia (blue-blind)
#50786C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d28;
/* rgb */ color: rgb(80, 125, 40);
/* oklch */ color: oklch(53.8% 0.125 133.0);
Tailwind
colors: {
  custom: {
    50: '#85a366',
    500: '#507d28',
    950: '#000000',
  },
}
SCSS
$custom: #507d28;
$custom-light: #85a366;
$custom-dark: #000000;
JSON
{
  "hex": "#507d28",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 91.765,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53844,
    "c": 0.12538,
    "h": 133
  },
  "luminance": 0.16526
}

Semantic roles & 50–950 ramp

primary
#507D28
secondary
#8353AE
accent
#4DDB98
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #507D28

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

Preview Lab → · Contrast checker → · Palette generator →

#507D28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva