#5A5D0F#5A5D0F

#5A5D0F is a mid, moderate yellow. Relative luminance 0.100; OKLCH L 46.1% C 0.095 H 111.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5A5D0F
RGBrgb(90, 93, 15)
HSLhsl(62, 72%, 21%)
HSVhsv(62, 84%, 36%)
CMYKcmyk(3.2%, 0%, 83.9%, 63.5%)
CIE-LABlab(37.91, -11.28, 40.56)
CIE-LCHlch(37.91, 42.10, 105.54°)
OKLaboklab(46.09% -0.0355 0.0883)
OKLCHoklch(46.09% 0.095 111.9)
XYZxyz(8.2173, 10.0371, 1.9563)
Luminance0.1004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5D0F #120F5D
analogous
#5D390F #5A5D0F #335D0F
triadic
#5A5D0F #0F5A5D #5D0F5A
tetradic
#5A5D0F #0F5D39 #120F5D #5D0F33
square
#5A5D0F #0F5D39 #120F5D #5D0F33
split-complementary
#5A5D0F #0F335D #390F5D
monochromatic
#191A04 #272806 #5A5D0F #8D9217 #C0C620

Accessibility & contrast

On white

6.98
#5A5D0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5A5D0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5D0F
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5D0F#FFFFFF#000000##FFFFFF
##5A5D0F1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655800
Deuteranopia (green-blind)
#655A16
Tritanopia (blue-blind)
#61574F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a5d0f;
/* rgb */ color: rgb(90, 93, 15);
/* oklch */ color: oklch(46.1% 0.095 111.9);
Tailwind
colors: {
  custom: {
    50: '#8c8a56',
    500: '#5a5d0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a5d0f;
$custom-light: #8c8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5d0f",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 62.308,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.46087,
    "c": 0.09518,
    "h": 111.9
  },
  "luminance": 0.10037
}

Semantic roles & 50–950 ramp

primary
#5A5D0F
secondary
#353196
accent
#39EF40
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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