#5A5F13#5A5F13

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

Color values

HEX#5A5F13
RGBrgb(90, 95, 19)
HSLhsl(64, 67%, 22%)
HSVhsv(64, 80%, 37%)
CMYKcmyk(5.3%, 0%, 80%, 62.7%)
CIE-LABlab(38.56, -12.22, 39.76)
CIE-LCHlch(38.56, 41.59, 107.09°)
OKLaboklab(46.62% -0.0378 0.0874)
OKLCHoklch(46.62% 0.095 113.4)
XYZxyz(8.4265, 10.4053, 2.1805)
Luminance0.1041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F13 #18135F
analogous
#5F3E13 #5A5F13 #345F13
triadic
#5A5F13 #135A5F #5F135A
tetradic
#5A5F13 #135F3E #18135F #5F1334
square
#5A5F13 #135F3E #18135F #5F1334
split-complementary
#5A5F13 #13345F #3E135F
monochromatic
#181A05 #2A2C09 #5A5F13 #8A921D #BBC527

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5F13#FFFFFF#000000##FFFFFF
##5A5F131.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)
#675A03
Deuteranopia (green-blind)
#675C19
Tritanopia (blue-blind)
#615951
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a5f13;
/* rgb */ color: rgb(90, 95, 19);
/* oklch */ color: oklch(46.6% 0.095 113.4);
Tailwind
colors: {
  custom: {
    50: '#8b8c58',
    500: '#5a5f13',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f13;
$custom-light: #8b8c58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f13",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 19
  },
  "hsl": {
    "h": 63.947,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.46616,
    "c": 0.09521,
    "h": 113.4
  },
  "luminance": 0.10405
}

Semantic roles & 50–950 ramp

primary
#5A5F13
secondary
#3D3797
accent
#3EEA49
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5F13

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

Preview Lab → · Contrast checker → · Palette generator →

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