#518F12#518F12

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

Color values

HEX#518F12
RGBrgb(81, 143, 18)
HSLhsl(90, 78%, 32%)
HSVhsv(90, 87%, 56%)
CMYKcmyk(43.4%, 0%, 87.4%, 43.9%)
CIE-LABlab(53.42, -39.50, 53.17)
CIE-LCHlch(53.42, 66.24, 126.61°)
OKLaboklab(58.53% -0.1113 0.1159)
OKLCHoklch(58.53% 0.161 133.8)
XYZxyz(13.3248, 21.4372, 4.0078)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518F12 #50128F
analogous
#8F8F12 #518F12 #138F12
triadic
#518F12 #12518F #8F1251
tetradic
#518F12 #128F8F #50128F #8F1213
square
#518F12 #128F8F #50128F #8F1213
split-complementary
#518F12 #12138F #8F128F
monochromatic
#132204 #32590B #518F12 #70C519 #8EE636

Accessibility & contrast

On white

3.97
#518F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#518F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518F12
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518F12#FFFFFF#000000##000000
##518F121.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8D7E23
Tritanopia (blue-blind)
#508979
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #518f12;
/* rgb */ color: rgb(81, 143, 18);
/* oklch */ color: oklch(58.5% 0.161 133.8);
Tailwind
colors: {
  custom: {
    50: '#88b05f',
    500: '#518f12',
    950: '#000000',
  },
}
SCSS
$custom: #518f12;
$custom-light: #88b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#518f12",
  "rgb": {
    "r": 81,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 89.76,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58534,
    "c": 0.16074,
    "h": 133.8
  },
  "luminance": 0.21438
}

Semantic roles & 50–950 ramp

primary
#518F12
secondary
#7E3AC3
accent
#34F493
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518F12

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

Preview Lab → · Contrast checker → · Palette generator →

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