#5A5A0F#5A5A0F

#5A5A0F is a mid, moderate yellow. Relative luminance 0.095; OKLCH L 45.3% C 0.092 H 109.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5A5A0F
RGBrgb(90, 90, 15)
HSLhsl(60, 71%, 21%)
HSVhsv(60, 83%, 35%)
CMYKcmyk(0%, 0%, 83.3%, 64.7%)
CIE-LABlab(36.97, -9.56, 39.72)
CIE-LCHlch(36.97, 40.86, 103.54°)
OKLaboklab(45.33% -0.0307 0.0865)
OKLCHoklch(45.33% 0.092 109.6)
XYZxyz(7.9591, 9.5207, 1.8703)
Luminance0.0952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5A0F #0F0F5A
analogous
#5A340F #5A5A0F #345A0F
triadic
#5A5A0F #0F5A5A #5A0F5A
tetradic
#5A5A0F #0F5A34 #0F0F5A #5A0F34
square
#5A5A0F #0F5A34 #0F0F5A #5A0F34
split-complementary
#5A5A0F #0F345A #340F5A
monochromatic
#1A1A04 #262606 #5A5A0F #8E8E18 #C3C320

Accessibility & contrast

On white

7.23
#5A5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5A0F
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5A0F#FFFFFF#000000##FFFFFF
##5A5A0F1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#635816
Tritanopia (blue-blind)
#61544C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a5a0f;
/* rgb */ color: rgb(90, 90, 15);
/* oklch */ color: oklch(45.3% 0.092 109.6);
Tailwind
colors: {
  custom: {
    50: '#8c8855',
    500: '#5a5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a5a0f;
$custom-light: #8c8855;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5a0f",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 60,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.45334,
    "c": 0.09181,
    "h": 109.6
  },
  "luminance": 0.0952
}

Semantic roles & 50–950 ramp

primary
#5A5A0F
secondary
#313194
accent
#3AEE3A
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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