#5A5A12#5A5A12

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

Color values

HEX#5A5A12
RGBrgb(90, 90, 18)
HSLhsl(60, 67%, 21%)
HSVhsv(60, 80%, 35%)
CMYKcmyk(0%, 0%, 80%, 64.7%)
CIE-LABlab(36.99, -9.43, 38.66)
CIE-LCHlch(36.99, 39.79, 103.70°)
OKLaboklab(45.35% -0.0301 0.0849)
OKLCHoklch(45.35% 0.09 109.5)
XYZxyz(7.9821, 9.5299, 1.9911)
Luminance0.0953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5A12 #12125A
analogous
#5A3612 #5A5A12 #365A12
triadic
#5A5A12 #125A5A #5A125A
tetradic
#5A5A12 #125A36 #12125A #5A1236
square
#5A5A12 #125A36 #12125A #5A1236
split-complementary
#5A5A12 #12365A #36125A
monochromatic
#1A1A05 #272708 #5A5A12 #8D8D1C #C0C026

Accessibility & contrast

On white

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

On black

2.91
#5A5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A5A12#FFFFFF#000000##FFFFFF
##5A5A121.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5a12;
/* rgb */ color: rgb(90, 90, 18);
/* oklch */ color: oklch(45.4% 0.090 109.5);
Tailwind
colors: {
  custom: {
    50: '#8b8856',
    500: '#5a5a12',
    950: '#000000',
  },
}
SCSS
$custom: #5a5a12;
$custom-light: #8b8856;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5a12",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.45354,
    "c": 0.09004,
    "h": 109.5
  },
  "luminance": 0.0953
}

Semantic roles & 50–950 ramp

primary
#5A5A12
secondary
#353593
accent
#3EEA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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