#5A5B11#5A5B11

#5A5B11 is a mid, moderate yellow. Relative luminance 0.097; OKLCH L 45.6% C 0.092 H 110.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5A5B11
RGBrgb(90, 91, 17)
HSLhsl(61, 69%, 21%)
HSVhsv(61, 81%, 36%)
CMYKcmyk(1.1%, 0%, 81.3%, 64.3%)
CIE-LABlab(37.29, -10.05, 39.31)
CIE-LCHlch(37.29, 40.58, 104.34°)
OKLaboklab(45.6% -0.0319 0.0861)
OKLCHoklch(45.6% 0.092 110.3)
XYZxyz(8.0590, 9.6965, 1.9773)
Luminance0.0970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5B11 #12115B
analogous
#5B3711 #5A5B11 #355B11
triadic
#5A5B11 #115A5B #5B115A
tetradic
#5A5B11 #115B37 #12115B #5B1135
square
#5A5B11 #115B37 #12115B #5B1135
split-complementary
#5A5B11 #11355B #37115B
monochromatic
#1A1A05 #272707 #5A5B11 #8D8F1B #C0C224

Accessibility & contrast

On white

7.14
#5A5B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5A5B11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5B11
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5B11#FFFFFF#000000##FFFFFF
##5A5B111.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635702
Deuteranopia (green-blind)
#645917
Tritanopia (blue-blind)
#61554D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a5b11;
/* rgb */ color: rgb(90, 91, 17);
/* oklch */ color: oklch(45.6% 0.092 110.3);
Tailwind
colors: {
  custom: {
    50: '#8b8956',
    500: '#5a5b11',
    950: '#000000',
  },
}
SCSS
$custom: #5a5b11;
$custom-light: #8b8956;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5b11",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 60.811,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.45597,
    "c": 0.09178,
    "h": 110.3
  },
  "luminance": 0.09696
}

Semantic roles & 50–950 ramp

primary
#5A5B11
secondary
#353494
accent
#3CEB3F
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5B11

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

Preview Lab → · Contrast checker → · Palette generator →

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