#5A5F11#5A5F11

#5A5F11 is a mid, moderate yellow. Relative luminance 0.104; OKLCH L 46.6% C 0.096 H 113.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5A5F11
RGBrgb(90, 95, 17)
HSLhsl(64, 70%, 22%)
HSVhsv(64, 82%, 37%)
CMYKcmyk(5.3%, 0%, 82.1%, 62.7%)
CIE-LABlab(38.55, -12.32, 40.46)
CIE-LCHlch(38.55, 42.30, 106.93°)
OKLaboklab(46.6% -0.0382 0.0885)
OKLCHoklch(46.6% 0.096 113.4)
XYZxyz(8.4101, 10.3987, 2.0943)
Luminance0.1040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F11 #16115F
analogous
#5F3D11 #5A5F11 #335F11
triadic
#5A5F11 #115A5F #5F115A
tetradic
#5A5F11 #115F3D #16115F #5F1133
square
#5A5F11 #115F3D #16115F #5F1133
split-complementary
#5A5F11 #11335F #3D115F
monochromatic
#191A05 #292B08 #5A5F11 #8B931A #BCC724

Accessibility & contrast

On white

6.82
#5A5F11 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A5F11 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5F11
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5F11#FFFFFF#000000##FFFFFF
##5A5F111.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A00
Deuteranopia (green-blind)
#675C18
Tritanopia (blue-blind)
#615951
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a5f11;
/* rgb */ color: rgb(90, 95, 17);
/* oklch */ color: oklch(46.6% 0.096 113.4);
Tailwind
colors: {
  custom: {
    50: '#8b8c57',
    500: '#5a5f11',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f11;
$custom-light: #8b8c57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f11",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 17
  },
  "hsl": {
    "h": 63.846,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.46603,
    "c": 0.0964,
    "h": 113.4
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#5A5F11
secondary
#3B3498
accent
#3BEC47
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5F11

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

Preview Lab → · Contrast checker → · Palette generator →

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