#5A6916#5A6916

#5A6916 is a mid, moderate yellow-green. Relative luminance 0.123; OKLCH L 49.2% C 0.106 H 119.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5A6916
RGBrgb(90, 105, 22)
HSLhsl(71, 65%, 25%)
HSVhsv(71, 79%, 41%)
CMYKcmyk(14.3%, 0%, 79%, 58.8%)
CIE-LABlab(41.74, -17.56, 41.64)
CIE-LCHlch(41.74, 45.19, 112.87°)
OKLaboklab(49.18% -0.0522 0.092)
OKLCHoklch(49.18% 0.106 119.6)
XYZxyz(9.4130, 12.3348, 2.6439)
Luminance0.1234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6916 #251669
analogous
#694E16 #5A6916 #316916
triadic
#5A6916 #165A69 #69165A
tetradic
#5A6916 #16694E #251669 #691631
square
#5A6916 #16694E #251669 #691631
split-complementary
#5A6916 #163169 #4E1669
monochromatic
#161905 #2F360B #5A6916 #859C21 #B1CE2B

Accessibility & contrast

On white

6.06
#5A6916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5A6916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6916
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6916#FFFFFF#000000##FFFFFF
##5A69161.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706304
Deuteranopia (green-blind)
#6E631D
Tritanopia (blue-blind)
#606359
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6916;
/* rgb */ color: rgb(90, 105, 22);
/* oklch */ color: oklch(49.2% 0.106 119.6);
Tailwind
colors: {
  custom: {
    50: '#8b935b',
    500: '#5a6916',
    950: '#000000',
  },
}
SCSS
$custom: #5a6916;
$custom-light: #8b935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6916",
  "rgb": {
    "r": 90,
    "g": 105,
    "b": 22
  },
  "hsl": {
    "h": 70.843,
    "s": 65.354,
    "l": 24.902
  },
  "oklch": {
    "l": 0.49179,
    "c": 0.10577,
    "h": 119.6
  },
  "luminance": 0.12335
}

Semantic roles & 50–950 ramp

primary
#5A6916
secondary
#4D3B9F
accent
#3FE85E
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6916

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

Preview Lab → · Contrast checker → · Palette generator →

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