#517B18#517B18

#517B18 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.2% C 0.133 H 130.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#517B18
RGBrgb(81, 123, 24)
HSLhsl(85, 67%, 29%)
HSVhsv(85, 80%, 48%)
CMYKcmyk(34.1%, 0%, 80.5%, 51.8%)
CIE-LABlab(46.95, -30.35, 45.63)
CIE-LCHlch(46.95, 54.80, 123.63°)
OKLaboklab(53.25% -0.0864 0.101)
OKLCHoklch(53.25% 0.133 130.5)
XYZxyz(10.6411, 15.9808, 3.3879)
Luminance0.1598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517B18 #42187B
analogous
#7B7418 #517B18 #1F7B18
triadic
#517B18 #18517B #7B1851
tetradic
#517B18 #187B74 #42187B #7B181F
square
#517B18 #187B74 #42187B #7B181F
split-complementary
#517B18 #181F7B #74187B
monochromatic
#111A05 #2F480E #517B18 #73AE22 #93D836

Accessibility & contrast

On white

5.00
#517B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#517B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517B18
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517B18#FFFFFF#000000##FFFFFF
##517B181.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#537569
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #517b18;
/* rgb */ color: rgb(81, 123, 24);
/* oklch */ color: oklch(53.2% 0.133 130.5);
Tailwind
colors: {
  custom: {
    50: '#86a15e',
    500: '#517b18',
    950: '#000000',
  },
}
SCSS
$custom: #517b18;
$custom-light: #86a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#517b18",
  "rgb": {
    "r": 81,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 85.455,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53246,
    "c": 0.13286,
    "h": 130.5
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

primary
#517B18
secondary
#6F3FB0
accent
#3EEA87
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #517B18

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

Preview Lab → · Contrast checker → · Palette generator →

#517B18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva