#507816#507816

#507816 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.4% C 0.131 H 130.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#507816
RGBrgb(80, 120, 22)
HSLhsl(84, 69%, 28%)
HSVhsv(84, 82%, 47%)
CMYKcmyk(33.3%, 0%, 81.7%, 52.9%)
CIE-LABlab(45.90, -29.45, 45.29)
CIE-LCHlch(45.90, 54.02, 123.03°)
OKLaboklab(52.37% -0.084 0.0999)
OKLCHoklch(52.37% 0.131 130.1)
XYZxyz(10.1695, 15.1960, 3.1562)
Luminance0.1520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507816 #3E1678
analogous
#786F16 #507816 #1F7816
triadic
#507816 #165078 #781650
tetradic
#507816 #16786F #3E1678 #78161F
square
#507816 #16786F #3E1678 #78161F
split-complementary
#507816 #161F78 #6F1678
monochromatic
#111A05 #2E440D #507816 #72AC1F #94D92F

Accessibility & contrast

On white

5.20
#507816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#507816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507816
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507816#FFFFFF#000000##FFFFFF
##5078161.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#786C21
Tritanopia (blue-blind)
#527266
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #507816;
/* rgb */ color: rgb(80, 120, 22);
/* oklch */ color: oklch(52.4% 0.131 130.1);
Tailwind
colors: {
  custom: {
    50: '#859f5d',
    500: '#507816',
    950: '#000000',
  },
}
SCSS
$custom: #507816;
$custom-light: #859f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#507816",
  "rgb": {
    "r": 80,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 84.49,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52373,
    "c": 0.13056,
    "h": 130.1
  },
  "luminance": 0.15196
}

Semantic roles & 50–950 ramp

primary
#507816
secondary
#6B3CAD
accent
#3CEC84
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #507816

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

Preview Lab → · Contrast checker → · Palette generator →

#507816 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva