#5A6816#5A6816

#5A6816 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#5A6816
RGBrgb(90, 104, 22)
HSLhsl(70, 65%, 25%)
HSVhsv(70, 79%, 41%)
CMYKcmyk(13.5%, 0%, 78.8%, 59.2%)
CIE-LABlab(41.43, -17.03, 41.34)
CIE-LCHlch(41.43, 44.71, 112.38°)
OKLaboklab(48.92% -0.0508 0.0913)
OKLCHoklch(48.92% 0.104 119.1)
XYZxyz(9.3118, 12.1323, 2.6101)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6816 #241668
analogous
#684D16 #5A6816 #316816
triadic
#5A6816 #165A68 #68165A
tetradic
#5A6816 #16684D #241668 #681631
square
#5A6816 #16684D #241668 #681631
split-complementary
#5A6816 #163168 #4D1668
monochromatic
#161905 #2E350B #5A6816 #869B21 #B1CD2B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6816#FFFFFF#000000##FFFFFF
##5A68161.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)
#6F6205
Deuteranopia (green-blind)
#6E621D
Tritanopia (blue-blind)
#606258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6816;
/* rgb */ color: rgb(90, 104, 22);
/* oklch */ color: oklch(48.9% 0.104 119.1);
Tailwind
colors: {
  custom: {
    50: '#8b935a',
    500: '#5a6816',
    950: '#000000',
  },
}
SCSS
$custom: #5a6816;
$custom-light: #8b935a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6816",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 70.244,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.48923,
    "c": 0.10449,
    "h": 119.1
  },
  "luminance": 0.12132
}

Semantic roles & 50–950 ramp

primary
#5A6816
secondary
#4C3B9F
accent
#40E85C
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6816

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

Preview Lab → · Contrast checker → · Palette generator →

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