#5C5A12#5C5A12

#5C5A12 is a mid, moderate yellow. Relative luminance 0.096; OKLCH L 45.5% C 0.090 H 107.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5C5A12
RGBrgb(92, 90, 18)
HSLhsl(58, 67%, 22%)
HSVhsv(58, 80%, 36%)
CMYKcmyk(0%, 2.2%, 80.4%, 63.9%)
CIE-LABlab(37.17, -8.45, 38.90)
CIE-LCHlch(37.17, 39.81, 102.25°)
OKLaboklab(45.55% -0.0275 0.0853)
OKLCHoklch(45.55% 0.09 107.8)
XYZxyz(8.1793, 9.6316, 2.0004)
Luminance0.0963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C5A12 #12145C
analogous
#5C3512 #5C5A12 #395C12
triadic
#5C5A12 #125C5A #5A125C
tetradic
#5C5A12 #125C35 #12145C #5C1239
square
#5C5A12 #125C35 #12145C #5C1239
split-complementary
#5C5A12 #12395C #35125C
monochromatic
#1A1905 #292808 #5C5A12 #8F8C1C #C2BE26

Accessibility & contrast

On white

7.18
#5C5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5C5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C5A12
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C5A12#FFFFFF#000000##FFFFFF
##5C5A121.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c5a12;
/* rgb */ color: rgb(92, 90, 18);
/* oklch */ color: oklch(45.5% 0.090 107.8);
Tailwind
colors: {
  custom: {
    50: '#8d8857',
    500: '#5c5a12',
    950: '#000000',
  },
}
SCSS
$custom: #5c5a12;
$custom-light: #8d8857;
$custom-dark: #000000;
JSON
{
  "hex": "#5c5a12",
  "rgb": {
    "r": 92,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 58.378,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.45549,
    "c": 0.08961,
    "h": 107.8
  },
  "luminance": 0.09631
}

Semantic roles & 50–950 ramp

primary
#5C5A12
secondary
#353894
accent
#42EA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5C5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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