#518D26#518D26

#518D26 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.1% C 0.148 H 135.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#518D26
RGBrgb(81, 141, 38)
HSLhsl(95, 58%, 35%)
HSVhsv(95, 73%, 55%)
CMYKcmyk(42.6%, 0%, 73%, 44.7%)
CIE-LABlab(52.88, -37.53, 46.31)
CIE-LCHlch(52.88, 59.61, 129.02°)
OKLaboklab(58.12% -0.1048 0.1046)
OKLCHoklch(58.12% 0.148 135)
XYZxyz(13.2678, 20.9383, 5.1757)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D26 #62268D
analogous
#858D26 #518D26 #268D2E
triadic
#518D26 #26518D #8D2651
tetradic
#518D26 #26858D #62268D #8D2E26
square
#518D26 #26858D #62268D #8D2E26
split-complementary
#518D26 #2E268D #8D2685
monochromatic
#1A2D0C #355D19 #518D26 #6DBD33 #8DD35B

Accessibility & contrast

On white

4.05
#518D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#518D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518D26
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518D26#FFFFFF#000000##000000
##518D261.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928115
Deuteranopia (green-blind)
#8A7C30
Tritanopia (blue-blind)
#508879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518d26;
/* rgb */ color: rgb(81, 141, 38);
/* oklch */ color: oklch(58.1% 0.148 135.0);
Tailwind
colors: {
  custom: {
    50: '#87af67',
    500: '#518d26',
    950: '#000000',
  },
}
SCSS
$custom: #518d26;
$custom-light: #87af67;
$custom-dark: #000000;
JSON
{
  "hex": "#518d26",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 38
  },
  "hsl": {
    "h": 94.951,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58123,
    "c": 0.14804,
    "h": 135
  },
  "luminance": 0.20939
}

Semantic roles & 50–950 ramp

primary
#518D26
secondary
#8F57B8
accent
#47E1A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518D26

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

Preview Lab → · Contrast checker → · Palette generator →

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