#5A6817#5A6817

#5A6817 is a mid, moderate yellow-green. Relative luminance 0.121; OKLCH L 48.9% C 0.104 H 119.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5A6817
RGBrgb(90, 104, 23)
HSLhsl(70, 64%, 25%)
HSVhsv(70, 78%, 41%)
CMYKcmyk(13.5%, 0%, 77.9%, 59.2%)
CIE-LABlab(41.43, -16.97, 40.97)
CIE-LCHlch(41.43, 44.35, 112.50°)
OKLaboklab(48.93% -0.0505 0.0907)
OKLCHoklch(48.93% 0.104 119.1)
XYZxyz(9.3216, 12.1362, 2.6619)
Luminance0.1214 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6817 #251768
analogous
#684D17 #5A6817 #326817
triadic
#5A6817 #175A68 #68175A
tetradic
#5A6817 #17684D #251768 #681732
square
#5A6817 #17684D #251768 #681732
split-complementary
#5A6817 #173268 #4D1768
monochromatic
#161906 #2F360C #5A6817 #859A22 #B1CC2D

Accessibility & contrast

On white

6.13
#5A6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5A6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6817
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6817#FFFFFF#000000##FFFFFF
##5A68171.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6206
Deuteranopia (green-blind)
#6E621E
Tritanopia (blue-blind)
#606259
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6817;
/* rgb */ color: rgb(90, 104, 23);
/* oklch */ color: oklch(48.9% 0.104 119.1);
Tailwind
colors: {
  custom: {
    50: '#8b935b',
    500: '#5a6817',
    950: '#000000',
  },
}
SCSS
$custom: #5a6817;
$custom-light: #8b935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6817",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 70.37,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.4893,
    "c": 0.10386,
    "h": 119.1
  },
  "luminance": 0.12136
}

Semantic roles & 50–950 ramp

primary
#5A6817
secondary
#4D3D9E
accent
#41E75E
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6817

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

Preview Lab → · Contrast checker → · Palette generator →

#5A6817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva