#507A18#507A18

#507A18 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.9% C 0.132 H 130.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#507A18
RGBrgb(80, 122, 24)
HSLhsl(86, 67%, 29%)
HSVhsv(86, 80%, 48%)
CMYKcmyk(34.4%, 0%, 80.3%, 52.2%)
CIE-LABlab(46.57, -30.28, 45.25)
CIE-LCHlch(46.57, 54.44, 123.79°)
OKLaboklab(52.92% -0.0861 0.1002)
OKLCHoklch(52.92% 0.132 130.7)
XYZxyz(10.4326, 15.6901, 3.3428)
Luminance0.1569 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507A18 #42187A
analogous
#7A7318 #507A18 #1F7A18
triadic
#507A18 #18507A #7A1850
tetradic
#507A18 #187A73 #42187A #7A181F
square
#507A18 #187A73 #42187A #7A181F
split-complementary
#507A18 #181F7A #73187A
monochromatic
#111A05 #2E470E #507A18 #72AD22 #92D735

Accessibility & contrast

On white

5.07
#507A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#507A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507A18
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507A18#FFFFFF#000000##FFFFFF
##507A181.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#527468
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #507a18;
/* rgb */ color: rgb(80, 122, 24);
/* oklch */ color: oklch(52.9% 0.132 130.7);
Tailwind
colors: {
  custom: {
    50: '#85a05e',
    500: '#507a18',
    950: '#000000',
  },
}
SCSS
$custom: #507a18;
$custom-light: #85a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#507a18",
  "rgb": {
    "r": 80,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 85.714,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52917,
    "c": 0.13211,
    "h": 130.7
  },
  "luminance": 0.1569
}

Semantic roles & 50–950 ramp

primary
#507A18
secondary
#6F3FAF
accent
#3EEA88
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #507A18

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

Preview Lab → · Contrast checker → · Palette generator →

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