#508F12#508F12

#508F12 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.5% C 0.161 H 134.1°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#508F12
RGBrgb(80, 143, 18)
HSLhsl(90, 78%, 32%)
HSVhsv(90, 87%, 56%)
CMYKcmyk(44.1%, 0%, 87.4%, 43.9%)
CIE-LABlab(53.38, -39.85, 53.11)
CIE-LCHlch(53.38, 66.40, 126.88°)
OKLaboklab(58.48% -0.1122 0.1158)
OKLCHoklch(58.48% 0.161 134.1)
XYZxyz(13.2397, 21.3933, 4.0039)
Luminance0.2139 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F12 #51128F
analogous
#8F8F12 #508F12 #128F13
triadic
#508F12 #12508F #8F1250
tetradic
#508F12 #128F8F #51128F #8F1312
square
#508F12 #128F8F #51128F #8F1312
split-complementary
#508F12 #13128F #8F128F
monochromatic
#132204 #32590B #508F12 #6EC519 #8DE636

Accessibility & contrast

On white

3.98
#508F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#508F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F12
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F12#FFFFFF#000000##000000
##508F121.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8D7E23
Tritanopia (blue-blind)
#4F8979
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508f12;
/* rgb */ color: rgb(80, 143, 18);
/* oklch */ color: oklch(58.5% 0.161 134.1);
Tailwind
colors: {
  custom: {
    50: '#88b05f',
    500: '#508f12',
    950: '#000000',
  },
}
SCSS
$custom: #508f12;
$custom-light: #88b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#508f12",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 90.24,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58483,
    "c": 0.16128,
    "h": 134.1
  },
  "luminance": 0.21394
}

Semantic roles & 50–950 ramp

primary
#508F12
secondary
#7F3AC3
accent
#34F495
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #508F12

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

Preview Lab → · Contrast checker → · Palette generator →

#508F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva