#507B22#507B22

#507B22 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.3% C 0.127 H 131.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#507B22
RGBrgb(80, 123, 34)
HSLhsl(89, 57%, 31%)
HSVhsv(89, 72%, 48%)
CMYKcmyk(35%, 0%, 72.4%, 51.8%)
CIE-LABlab(46.96, -30.09, 41.86)
CIE-LCHlch(46.96, 51.55, 125.71°)
OKLaboklab(53.26% -0.0848 0.0947)
OKLCHoklch(53.26% 0.127 131.8)
XYZxyz(10.6798, 15.9865, 4.0361)
Luminance0.1599 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507B22 #4D227B
analogous
#7B7922 #507B22 #237B22
triadic
#507B22 #22507B #7B2250
tetradic
#507B22 #227B79 #4D227B #7B2223
square
#507B22 #227B79 #4D227B #7B2223
split-complementary
#507B22 #22237B #79227B
monochromatic
#121B07 #314B15 #507B22 #6FAB2F #8ECD4A

Accessibility & contrast

On white

5.00
#507B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#507B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507B22
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507B22#FFFFFF#000000##FFFFFF
##507B221.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#517669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #507b22;
/* rgb */ color: rgb(80, 123, 34);
/* oklch */ color: oklch(53.3% 0.127 131.8);
Tailwind
colors: {
  custom: {
    50: '#85a163',
    500: '#507b22',
    950: '#000000',
  },
}
SCSS
$custom: #507b22;
$custom-light: #85a163;
$custom-dark: #000000;
JSON
{
  "hex": "#507b22",
  "rgb": {
    "r": 80,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 88.989,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53257,
    "c": 0.12712,
    "h": 131.8
  },
  "luminance": 0.15987
}

Semantic roles & 50–950 ramp

primary
#507B22
secondary
#7B4BAE
accent
#48E091
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #507B22

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

Preview Lab → · Contrast checker → · Palette generator →

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