#5A5F0E#5A5F0E

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

Color values

HEX#5A5F0E
RGBrgb(90, 95, 14)
HSLhsl(64, 74%, 21%)
HSVhsv(64, 85%, 37%)
CMYKcmyk(5.3%, 0%, 85.3%, 62.7%)
CIE-LABlab(38.53, -12.45, 41.44)
CIE-LCHlch(38.53, 43.27, 106.72°)
OKLaboklab(46.59% -0.0388 0.09)
OKLCHoklch(46.59% 0.098 113.3)
XYZxyz(8.3882, 10.3900, 1.9790)
Luminance0.1039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F0E #130E5F
analogous
#5F3C0E #5A5F0E #325F0E
triadic
#5A5F0E #0E5A5F #5F0E5A
tetradic
#5A5F0E #0E5F3C #130E5F #5F0E32
square
#5A5F0E #0E5F3C #130E5F #5F0E32
split-complementary
#5A5F0E #0E325F #3C0E5F
monochromatic
#191B04 #272A06 #5A5F0E #8D9416 #BFCA1E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5a5f0e;
/* rgb */ color: rgb(90, 95, 14);
/* oklch */ color: oklch(46.6% 0.098 113.3);
Tailwind
colors: {
  custom: {
    50: '#8c8c55',
    500: '#5a5f0e',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f0e;
$custom-light: #8c8c55;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f0e",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 14
  },
  "hsl": {
    "h": 63.704,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.46586,
    "c": 0.098,
    "h": 113.3
  },
  "luminance": 0.1039
}

Semantic roles & 50–950 ramp

primary
#5A5F0E
secondary
#373099
accent
#37F142
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5F0E

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

Preview Lab → · Contrast checker → · Palette generator →

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