#518A1C#518A1C

#518A1C is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.3% C 0.150 H 133.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#518A1C
RGBrgb(81, 138, 28)
HSLhsl(91, 66%, 33%)
HSVhsv(91, 80%, 54%)
CMYKcmyk(41.3%, 0%, 79.7%, 45.9%)
CIE-LABlab(51.85, -36.89, 48.91)
CIE-LCHlch(51.85, 61.26, 127.02°)
OKLaboklab(57.26% -0.1037 0.1085)
OKLCHoklch(57.26% 0.15 133.7)
XYZxyz(12.6912, 20.0095, 4.2919)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518A1C #551C8A
analogous
#888A1C #518A1C #1C8A1E
triadic
#518A1C #1C518A #8A1C51
tetradic
#518A1C #1C888A #551C8A #8A1E1C
square
#518A1C #1C888A #551C8A #8A1E1C
split-complementary
#518A1C #1E1C8A #8A1C88
monochromatic
#152407 #335712 #518A1C #6FBD26 #8EDA47

Accessibility & contrast

On white

4.20
#518A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#518A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518A1C
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518A1C#FFFFFF#000000##000000
##518A1C1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#518476
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #518a1c;
/* rgb */ color: rgb(81, 138, 28);
/* oklch */ color: oklch(57.3% 0.150 133.7);
Tailwind
colors: {
  custom: {
    50: '#87ac62',
    500: '#518a1c',
    950: '#000000',
  },
}
SCSS
$custom: #518a1c;
$custom-light: #87ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#518a1c",
  "rgb": {
    "r": 81,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 91.091,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57256,
    "c": 0.15012,
    "h": 133.7
  },
  "luminance": 0.2001
}

Semantic roles & 50–950 ramp

primary
#518A1C
secondary
#8346BB
accent
#3FE997
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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