#507A22#507A22

#507A22 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.0% C 0.126 H 131.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#507A22
RGBrgb(80, 122, 34)
HSLhsl(89, 56%, 31%)
HSVhsv(89, 72%, 48%)
CMYKcmyk(34.4%, 0%, 72.1%, 52.2%)
CIE-LABlab(46.63, -29.62, 41.53)
CIE-LCHlch(46.63, 51.01, 125.50°)
OKLaboklab(52.99% -0.0835 0.094)
OKLCHoklch(52.99% 0.126 131.6)
XYZxyz(10.5564, 15.7396, 3.9949)
Luminance0.1574 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507A22 #4C227A
analogous
#7A7822 #507A22 #247A22
triadic
#507A22 #22507A #7A2250
tetradic
#507A22 #227A78 #4C227A #7A2224
square
#507A22 #227A78 #4C227A #7A2224
split-complementary
#507A22 #22247A #78227A
monochromatic
#111A07 #314A15 #507A22 #6FAA2F #8ECD4A

Accessibility & contrast

On white

5.06
#507A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#507A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507A22
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507A22#FFFFFF#000000##FFFFFF
##507A221.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7114
Deuteranopia (green-blind)
#7A6D2A
Tritanopia (blue-blind)
#517568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #507a22;
/* rgb */ color: rgb(80, 122, 34);
/* oklch */ color: oklch(53.0% 0.126 131.6);
Tailwind
colors: {
  custom: {
    50: '#85a063',
    500: '#507a22',
    950: '#000000',
  },
}
SCSS
$custom: #507a22;
$custom-light: #85a063;
$custom-dark: #000000;
JSON
{
  "hex": "#507a22",
  "rgb": {
    "r": 80,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 88.636,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52992,
    "c": 0.12574,
    "h": 131.6
  },
  "luminance": 0.1574
}

Semantic roles & 50–950 ramp

primary
#507A22
secondary
#7A4BAD
accent
#48E090
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #507A22

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

Preview Lab → · Contrast checker → · Palette generator →

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