#507A38#507A38

#507A38 is a mid, moderate yellow-green. Relative luminance 0.159; OKLCH L 53.2% C 0.106 H 135.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#507A38
RGBrgb(80, 122, 56)
HSLhsl(98, 37%, 35%)
HSVhsv(98, 54%, 48%)
CMYKcmyk(34.4%, 0%, 54.1%, 52.2%)
CIE-LABlab(46.86, -27.41, 31.29)
CIE-LCHlch(46.86, 41.60, 131.21°)
OKLaboklab(53.25% -0.0756 0.0747)
OKLCHoklch(53.25% 0.106 135.4)
XYZxyz(10.9813, 15.9096, 6.2329)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507A38 #62387A
analogous
#717A38 #507A38 #387A41
triadic
#507A38 #38507A #7A3850
tetradic
#507A38 #38717A #62387A #7A4138
square
#507A38 #38717A #62387A #7A4138
split-complementary
#507A38 #41387A #7A3871
monochromatic
#192611 #345025 #507A38 #6CA44B #8CBD6F

Accessibility & contrast

On white

5.02
#507A38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#507A38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507A38
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507A38#FFFFFF#000000##FFFFFF
##507A381.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7132
Deuteranopia (green-blind)
#786E3C
Tritanopia (blue-blind)
#4F766B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #507a38;
/* rgb */ color: rgb(80, 122, 56);
/* oklch */ color: oklch(53.2% 0.106 135.4);
Tailwind
colors: {
  custom: {
    50: '#83a070',
    500: '#507a38',
    950: '#000000',
  },
}
SCSS
$custom: #507a38;
$custom-light: #83a070;
$custom-dark: #000000;
JSON
{
  "hex": "#507a38",
  "rgb": {
    "r": 80,
    "g": 122,
    "b": 56
  },
  "hsl": {
    "h": 98.182,
    "s": 37.079,
    "l": 34.902
  },
  "oklch": {
    "l": 0.53247,
    "c": 0.10628,
    "h": 135.4
  },
  "luminance": 0.1591
}

Semantic roles & 50–950 ramp

primary
#507A38
secondary
#8F68A6
accent
#5BCDA3
background
#F8F9F6
surface
#EFF2EC
border
#CACCC7
text
#0B0F07
muted
#7C7E7A

Preview Lab

Preview with #507A38

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

Preview Lab → · Contrast checker → · Palette generator →

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