#5C5012#5C5012

#5C5012 is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 43.1% C 0.080 H 97.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5C5012
RGBrgb(92, 80, 18)
HSLhsl(50, 67%, 22%)
HSVhsv(50, 80%, 36%)
CMYKcmyk(0%, 13%, 80.4%, 63.9%)
CIE-LABlab(34.10, -2.53, 36.02)
CIE-LCHlch(34.10, 36.11, 94.02°)
OKLaboklab(43.11% -0.0108 0.0792)
OKLCHoklch(43.11% 0.08 97.8)
XYZxyz(7.3918, 8.0567, 1.7379)
Luminance0.0806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C5012 #121E5C
analogous
#5C2B12 #5C5012 #435C12
triadic
#5C5012 #125C50 #50125C
tetradic
#5C5012 #125C2B #121E5C #5C1243
square
#5C5012 #125C2B #121E5C #5C1243
split-complementary
#5C5012 #12435C #2B125C
monochromatic
#1A1605 #292308 #5C5012 #8F7D1C #C2A926

Accessibility & contrast

On white

8.04
#5C5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5C5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C5012
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C5012#FFFFFF#000000##FFFFFF
##5C50121.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E07
Deuteranopia (green-blind)
#5C5216
Tritanopia (blue-blind)
#644944
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c5012;
/* rgb */ color: rgb(92, 80, 18);
/* oklch */ color: oklch(43.1% 0.080 97.8);
Tailwind
colors: {
  custom: {
    50: '#8d8055',
    500: '#5c5012',
    950: '#000000',
  },
}
SCSS
$custom: #5c5012;
$custom-light: #8d8055;
$custom-dark: #000000;
JSON
{
  "hex": "#5c5012",
  "rgb": {
    "r": 92,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 50.27,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43106,
    "c": 0.07991,
    "h": 97.8
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#5C5012
secondary
#354594
accent
#5AEA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0D0A03
muted
#7D7C78

Preview Lab

Preview with #5C5012

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

Preview Lab → · Contrast checker → · Palette generator →

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