#507A28#507A28

#507A28 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.0% C 0.121 H 132.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#507A28
RGBrgb(80, 122, 40)
HSLhsl(91, 51%, 32%)
HSVhsv(91, 67%, 48%)
CMYKcmyk(34.4%, 0%, 67.2%, 52.2%)
CIE-LABlab(46.68, -29.12, 38.97)
CIE-LCHlch(46.68, 48.65, 126.77°)
OKLaboklab(53.05% -0.0816 0.0895)
OKLCHoklch(53.05% 0.121 132.4)
XYZxyz(10.6507, 15.7773, 4.4912)
Luminance0.1578 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507A28 #52287A
analogous
#797A28 #507A28 #287A29
triadic
#507A28 #28507A #7A2850
tetradic
#507A28 #28797A #52287A #7A2928
square
#507A28 #28797A #52287A #7A2928
split-complementary
#507A28 #29287A #7A2879
monochromatic
#141E0A #324C19 #507A28 #6EA837 #8DC755

Accessibility & contrast

On white

5.05
#507A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#507A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507A28
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507A28#FFFFFF#000000##FFFFFF
##507A281.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711E
Deuteranopia (green-blind)
#796D2F
Tritanopia (blue-blind)
#517569
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #507a28;
/* rgb */ color: rgb(80, 122, 40);
/* oklch */ color: oklch(53.0% 0.121 132.4);
Tailwind
colors: {
  custom: {
    50: '#84a066',
    500: '#507a28',
    950: '#000000',
  },
}
SCSS
$custom: #507a28;
$custom-light: #84a066;
$custom-dark: #000000;
JSON
{
  "hex": "#507a28",
  "rgb": {
    "r": 80,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 90.732,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53049,
    "c": 0.12112,
    "h": 132.4
  },
  "luminance": 0.15778
}

Semantic roles & 50–950 ramp

primary
#507A28
secondary
#8052AC
accent
#4EDA96
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F06
muted
#7C7E7A

Preview Lab

Preview with #507A28

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

Preview Lab → · Contrast checker → · Palette generator →

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