#5D5212#5D5212

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

Color values

HEX#5D5212
RGBrgb(93, 82, 18)
HSLhsl(51, 68%, 22%)
HSVhsv(51, 81%, 36%)
CMYKcmyk(0%, 11.8%, 80.6%, 63.5%)
CIE-LABlab(34.81, -3.23, 36.74)
CIE-LCHlch(34.81, 36.88, 95.03°)
OKLaboklab(43.7% -0.0128 0.0807)
OKLCHoklch(43.7% 0.082 99.1)
XYZxyz(7.6411, 8.4058, 1.7922)
Luminance0.0840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D5212 #121D5D
analogous
#5D2D12 #5D5212 #435D12
triadic
#5D5212 #125D52 #52125D
tetradic
#5D5212 #125D2D #121D5D #5D1243
square
#5D5212 #125D2D #121D5D #5D1243
split-complementary
#5D5212 #12435D #2D125D
monochromatic
#1A1705 #2A2508 #5D5212 #907F1C #C4AC26

Accessibility & contrast

On white

7.83
#5D5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5D5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D5212
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D5212#FFFFFF#000000##FFFFFF
##5D52121.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5006
Deuteranopia (green-blind)
#5E5416
Tritanopia (blue-blind)
#654B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d5212;
/* rgb */ color: rgb(93, 82, 18);
/* oklch */ color: oklch(43.7% 0.082 99.1);
Tailwind
colors: {
  custom: {
    50: '#8e8255',
    500: '#5d5212',
    950: '#000000',
  },
}
SCSS
$custom: #5d5212;
$custom-light: #8e8255;
$custom-dark: #000000;
JSON
{
  "hex": "#5d5212",
  "rgb": {
    "r": 93,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 51.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.43697,
    "c": 0.08167,
    "h": 99.1
  },
  "luminance": 0.08405
}

Semantic roles & 50–950 ramp

primary
#5D5212
secondary
#354495
accent
#57EA3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5D5212

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

Preview Lab → · Contrast checker → · Palette generator →

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