#507E12#507E12

#507E12 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 53.9% C 0.140 H 131.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#507E12
RGBrgb(80, 126, 18)
HSLhsl(86, 75%, 28%)
HSVhsv(86, 86%, 49%)
CMYKcmyk(36.5%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.84, -32.42, 48.25)
CIE-LCHlch(47.84, 58.13, 123.90°)
OKLaboklab(53.95% -0.0923 0.1055)
OKLCHoklch(53.95% 0.14 131.2)
XYZxyz(10.8782, 16.6704, 3.2167)
Luminance0.1667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507E12 #40127E
analogous
#7E7612 #507E12 #1A7E12
triadic
#507E12 #12507E #7E1250
tetradic
#507E12 #127E76 #40127E #7E121A
square
#507E12 #127E76 #40127E #7E121A
split-complementary
#507E12 #121A7E #76127E
monochromatic
#111B04 #2E480A #507E12 #72B41A #93E12A

Accessibility & contrast

On white

4.85
#507E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#507E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507E12
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507E12#FFFFFF#000000##FFFFFF
##507E121.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7E701F
Tritanopia (blue-blind)
#52786B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507e12;
/* rgb */ color: rgb(80, 126, 18);
/* oklch */ color: oklch(53.9% 0.140 131.2);
Tailwind
colors: {
  custom: {
    50: '#86a35c',
    500: '#507e12',
    950: '#000000',
  },
}
SCSS
$custom: #507e12;
$custom-light: #86a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#507e12",
  "rgb": {
    "r": 80,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 85.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5395,
    "c": 0.14019,
    "h": 131.2
  },
  "luminance": 0.16671
}

Semantic roles & 50–950 ramp

primary
#507E12
secondary
#6D38B4
accent
#36F286
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F04
muted
#7D7F79

Preview Lab

Preview with #507E12

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

Preview Lab → · Contrast checker → · Palette generator →

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