#5A5C0F#5A5C0F

#5A5C0F is a mid, moderate yellow. Relative luminance 0.099; OKLCH L 45.8% C 0.094 H 111.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5A5C0F
RGBrgb(90, 92, 15)
HSLhsl(62, 72%, 21%)
HSVhsv(62, 84%, 36%)
CMYKcmyk(2.2%, 0%, 83.7%, 63.9%)
CIE-LABlab(37.59, -10.71, 40.28)
CIE-LCHlch(37.59, 41.68, 104.89°)
OKLaboklab(45.84% -0.0339 0.0877)
OKLCHoklch(45.84% 0.094 111.1)
XYZxyz(8.1301, 9.8627, 1.9273)
Luminance0.0986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5C0F #110F5C
analogous
#5C370F #5A5C0F #335C0F
triadic
#5A5C0F #0F5A5C #5C0F5A
tetradic
#5A5C0F #0F5C37 #110F5C #5C0F33
square
#5A5C0F #0F5C37 #110F5C #5C0F33
split-complementary
#5A5C0F #0F335C #370F5C
monochromatic
#1A1A04 #272706 #5A5C0F #8D9118 #C1C520

Accessibility & contrast

On white

7.06
#5A5C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5A5C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5C0F
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5C0F#FFFFFF#000000##FFFFFF
##5A5C0F1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645700
Deuteranopia (green-blind)
#645916
Tritanopia (blue-blind)
#61564E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a5c0f;
/* rgb */ color: rgb(90, 92, 15);
/* oklch */ color: oklch(45.8% 0.094 111.1);
Tailwind
colors: {
  custom: {
    50: '#8c8955',
    500: '#5a5c0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a5c0f;
$custom-light: #8c8955;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5c0f",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 15
  },
  "hsl": {
    "h": 61.558,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.45836,
    "c": 0.09404,
    "h": 111.1
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#5A5C0F
secondary
#343195
accent
#39EF3E
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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