#5A5F0F#5A5F0F

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

Color values

HEX#5A5F0F
RGBrgb(90, 95, 15)
HSLhsl(64, 73%, 22%)
HSVhsv(64, 84%, 37%)
CMYKcmyk(5.3%, 0%, 84.2%, 62.7%)
CIE-LABlab(38.54, -12.41, 41.12)
CIE-LCHlch(38.54, 42.96, 106.79°)
OKLaboklab(46.59% -0.0386 0.0895)
OKLCHoklch(46.59% 0.097 113.3)
XYZxyz(8.3952, 10.3928, 2.0156)
Luminance0.1039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F0F #140F5F
analogous
#5F3C0F #5A5F0F #325F0F
triadic
#5A5F0F #0F5A5F #5F0F5A
tetradic
#5A5F0F #0F5F3C #140F5F #5F0F32
square
#5A5F0F #0F5F3C #140F5F #5F0F32
split-complementary
#5A5F0F #0F325F #3C0F5F
monochromatic
#191A04 #282A07 #5A5F0F #8C9417 #BEC920

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5F0F#FFFFFF#000000##FFFFFF
##5A5F0F1.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)
#675C17
Tritanopia (blue-blind)
#615950
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a5f0f;
/* rgb */ color: rgb(90, 95, 15);
/* oklch */ color: oklch(46.6% 0.097 113.3);
Tailwind
colors: {
  custom: {
    50: '#8c8c56',
    500: '#5a5f0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f0f;
$custom-light: #8c8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f0f",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 63.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.46591,
    "c": 0.09749,
    "h": 113.3
  },
  "luminance": 0.10393
}

Semantic roles & 50–950 ramp

primary
#5A5F0F
secondary
#383298
accent
#38EF44
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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