#5C5212#5C5212

#5C5212 is a dark, moderate yellow. Relative luminance 0.084; OKLCH L 43.6% C 0.082 H 100.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5C5212
RGBrgb(92, 82, 18)
HSLhsl(52, 67%, 22%)
HSVhsv(52, 80%, 36%)
CMYKcmyk(0%, 10.9%, 80.4%, 63.9%)
CIE-LABlab(34.71, -3.73, 36.60)
CIE-LCHlch(34.71, 36.79, 95.82°)
OKLaboklab(43.59% -0.0142 0.0804)
OKLCHoklch(43.59% 0.082 100)
XYZxyz(7.5405, 8.3539, 1.7874)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C5212 #121C5C
analogous
#5C2D12 #5C5212 #415C12
triadic
#5C5212 #125C52 #52125C
tetradic
#5C5212 #125C2D #121C5C #5C1241
square
#5C5212 #125C2D #121C5C #5C1241
split-complementary
#5C5212 #12415C #2D125C
monochromatic
#1A1705 #292408 #5C5212 #8F801C #C2AD26

Accessibility & contrast

On white

7.86
#5C5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5C5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C5212
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C5212#FFFFFF#000000##FFFFFF
##5C52121.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F06
Deuteranopia (green-blind)
#5D5316
Tritanopia (blue-blind)
#644B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c5212;
/* rgb */ color: rgb(92, 82, 18);
/* oklch */ color: oklch(43.6% 0.082 100.0);
Tailwind
colors: {
  custom: {
    50: '#8d8255',
    500: '#5c5212',
    950: '#000000',
  },
}
SCSS
$custom: #5c5212;
$custom-light: #8d8255;
$custom-dark: #000000;
JSON
{
  "hex": "#5c5212",
  "rgb": {
    "r": 92,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 51.892,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43589,
    "c": 0.08165,
    "h": 100
  },
  "luminance": 0.08354
}

Semantic roles & 50–950 ramp

primary
#5C5212
secondary
#354294
accent
#55EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0D0A03
muted
#7D7C78

Preview Lab

Preview with #5C5212

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

Preview Lab → · Contrast checker → · Palette generator →

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