#5A6111#5A6111

#5A6111 is a mid, moderate yellow. Relative luminance 0.108; OKLCH L 47.1% C 0.099 H 114.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5A6111
RGBrgb(90, 97, 17)
HSLhsl(65, 70%, 22%)
HSVhsv(65, 82%, 38%)
CMYKcmyk(7.2%, 0%, 82.5%, 62%)
CIE-LABlab(39.18, -13.44, 41.04)
CIE-LCHlch(39.18, 43.18, 108.13°)
OKLaboklab(47.11% -0.0413 0.0897)
OKLCHoklch(47.11% 0.099 114.7)
XYZxyz(8.5926, 10.7637, 2.1552)
Luminance0.1076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6111 #181161
analogous
#614011 #5A6111 #326111
triadic
#5A6111 #115A61 #61115A
tetradic
#5A6111 #116140 #181161 #611132
square
#5A6111 #116140 #181161 #611132
split-complementary
#5A6111 #113261 #401161
monochromatic
#181A05 #2A2D08 #5A6111 #8A951A #BBC923

Accessibility & contrast

On white

6.66
#5A6111 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5A6111 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6111
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6111#FFFFFF#000000##FFFFFF
##5A61111.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#685D18
Tritanopia (blue-blind)
#605B52
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a6111;
/* rgb */ color: rgb(90, 97, 17);
/* oklch */ color: oklch(47.1% 0.099 114.7);
Tailwind
colors: {
  custom: {
    50: '#8b8d57',
    500: '#5a6111',
    950: '#000000',
  },
}
SCSS
$custom: #5a6111;
$custom-light: #8b8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6111",
  "rgb": {
    "r": 90,
    "g": 97,
    "b": 17
  },
  "hsl": {
    "h": 65.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.47109,
    "c": 0.09877,
    "h": 114.7
  },
  "luminance": 0.10764
}

Semantic roles & 50–950 ramp

primary
#5A6111
secondary
#3D3499
accent
#3BED4A
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A6111

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

Preview Lab → · Contrast checker → · Palette generator →

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