#5A5F0D#5A5F0D

#5A5F0D 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#5A5F0D
RGBrgb(90, 95, 13)
HSLhsl(64, 76%, 21%)
HSVhsv(64, 86%, 37%)
CMYKcmyk(5.3%, 0%, 86.3%, 62.7%)
CIE-LABlab(38.53, -12.48, 41.74)
CIE-LCHlch(38.53, 43.57, 106.65°)
OKLaboklab(46.58% -0.039 0.0904)
OKLCHoklch(46.58% 0.098 113.3)
XYZxyz(8.3816, 10.3873, 1.9441)
Luminance0.1039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F0D #120D5F
analogous
#5F3B0D #5A5F0D #315F0D
triadic
#5A5F0D #0D5A5F #5F0D5A
tetradic
#5A5F0D #0D5F3B #120D5F #5F0D31
square
#5A5F0D #0D5F3B #120D5F #5F0D31
split-complementary
#5A5F0D #0D315F #3B0D5F
monochromatic
#191B04 #272906 #5A5F0D #8D9514 #C0CB1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5a5f0d;
/* rgb */ color: rgb(90, 95, 13);
/* oklch */ color: oklch(46.6% 0.098 113.3);
Tailwind
colors: {
  custom: {
    50: '#8c8c55',
    500: '#5a5f0d',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f0d;
$custom-light: #8c8c55;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f0d",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 13
  },
  "hsl": {
    "h": 63.659,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.46581,
    "c": 0.09849,
    "h": 113.3
  },
  "luminance": 0.10387
}

Semantic roles & 50–950 ramp

primary
#5A5F0D
secondary
#352F99
accent
#35F341
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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