#5A5F16#5A5F16

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

Color values

HEX#5A5F16
RGBrgb(90, 95, 22)
HSLhsl(64, 62%, 23%)
HSVhsv(64, 77%, 37%)
CMYKcmyk(5.3%, 0%, 76.8%, 62.7%)
CIE-LABlab(38.58, -12.07, 38.62)
CIE-LCHlch(38.58, 40.46, 107.35°)
OKLaboklab(46.64% -0.037 0.0856)
OKLCHoklch(46.64% 0.093 113.4)
XYZxyz(8.4537, 10.4162, 2.3241)
Luminance0.1042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F16 #1B165F
analogous
#5F3F16 #5A5F16 #355F16
triadic
#5A5F16 #165A5F #5F165A
tetradic
#5A5F16 #165F3F #1B165F #5F1635
square
#5A5F16 #165F3F #1B165F #5F1635
split-complementary
#5A5F16 #16355F #3F165F
monochromatic
#181906 #2B2D0A #5A5F16 #899122 #B8C22D

Accessibility & contrast

On white

6.81
#5A5F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A5F16
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5F16#FFFFFF#000000##FFFFFF
##5A5F161.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A08
Deuteranopia (green-blind)
#665C1C
Tritanopia (blue-blind)
#605951
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a5f16;
/* rgb */ color: rgb(90, 95, 22);
/* oklch */ color: oklch(46.6% 0.093 113.4);
Tailwind
colors: {
  custom: {
    50: '#8b8c59',
    500: '#5a5f16',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f16;
$custom-light: #8b8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f16",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 22
  },
  "hsl": {
    "h": 64.11,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.46637,
    "c": 0.09326,
    "h": 113.4
  },
  "luminance": 0.10416
}

Semantic roles & 50–950 ramp

primary
#5A5F16
secondary
#413B96
accent
#42E54E
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A5F16

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

Preview Lab → · Contrast checker → · Palette generator →

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