#5A6A16#5A6A16

#5A6A16 is a mid, moderate yellow-green. Relative luminance 0.125; OKLCH L 49.4% C 0.107 H 120.1°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5A6A16
RGBrgb(90, 106, 22)
HSLhsl(71, 66%, 25%)
HSVhsv(71, 79%, 42%)
CMYKcmyk(15.1%, 0%, 79.2%, 58.4%)
CIE-LABlab(42.06, -18.10, 41.94)
CIE-LCHlch(42.06, 45.68, 113.34°)
OKLaboklab(49.44% -0.0537 0.0926)
OKLCHoklch(49.44% 0.107 120.1)
XYZxyz(9.5155, 12.5397, 2.6780)
Luminance0.1254 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6A16 #26166A
analogous
#6A5016 #5A6A16 #306A16
triadic
#5A6A16 #165A6A #6A165A
tetradic
#5A6A16 #166A50 #26166A #6A1630
square
#5A6A16 #166A50 #26166A #6A1630
split-complementary
#5A6A16 #16306A #50166A
monochromatic
#161905 #2F370B #5A6A16 #859D21 #B0CF2B

Accessibility & contrast

On white

5.99
#5A6A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5A6A16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6A16
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6A16#FFFFFF#000000##FFFFFF
##5A6A161.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716304
Deuteranopia (green-blind)
#6F631E
Tritanopia (blue-blind)
#60645A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a6a16;
/* rgb */ color: rgb(90, 106, 22);
/* oklch */ color: oklch(49.4% 0.107 120.1);
Tailwind
colors: {
  custom: {
    50: '#8b945b',
    500: '#5a6a16',
    950: '#000000',
  },
}
SCSS
$custom: #5a6a16;
$custom-light: #8b945b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6a16",
  "rgb": {
    "r": 90,
    "g": 106,
    "b": 22
  },
  "hsl": {
    "h": 71.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.49435,
    "c": 0.10705,
    "h": 120.1
  },
  "luminance": 0.1254
}

Semantic roles & 50–950 ramp

primary
#5A6A16
secondary
#4F3BA0
accent
#3FE95F
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6A16

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

Preview Lab → · Contrast checker → · Palette generator →

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