#5E520F#5E520F

#5E520F is a dark, moderate yellow. Relative luminance 0.084; OKLCH L 43.8% C 0.084 H 98.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5E520F
RGBrgb(94, 82, 15)
HSLhsl(51, 72%, 21%)
HSVhsv(51, 84%, 37%)
CMYKcmyk(0%, 12.8%, 84%, 63.1%)
CIE-LABlab(34.90, -2.87, 38.01)
CIE-LCHlch(34.90, 38.12, 94.31°)
OKLaboklab(43.79% -0.0122 0.0826)
OKLCHoklch(43.79% 0.084 98.4)
XYZxyz(7.7200, 8.4492, 1.6761)
Luminance0.0845 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E520F #0F1B5E
analogous
#5E2B0F #5E520F #435E0F
triadic
#5E520F #0F5E52 #520F5E
tetradic
#5E520F #0F5E2B #0F1B5E #5E0F43
square
#5E520F #0F5E2B #0F1B5E #5E0F43
split-complementary
#5E520F #0F435E #2B0F5E
monochromatic
#1A1704 #292407 #5E520F #938017 #C8AE20

Accessibility & contrast

On white

7.81
#5E520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5E520F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E520F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E520F#FFFFFF#000000##FFFFFF
##5E520F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5002
Deuteranopia (green-blind)
#5E5414
Tritanopia (blue-blind)
#664B45
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e520f;
/* rgb */ color: rgb(94, 82, 15);
/* oklch */ color: oklch(43.8% 0.084 98.4);
Tailwind
colors: {
  custom: {
    50: '#8f8254',
    500: '#5e520f',
    950: '#000000',
  },
}
SCSS
$custom: #5e520f;
$custom-light: #8f8254;
$custom-dark: #000000;
JSON
{
  "hex": "#5e520f",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 50.886,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43785,
    "c": 0.08354,
    "h": 98.4
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

primary
#5E520F
secondary
#314197
accent
#54EF39
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5E520F

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

Preview Lab → · Contrast checker → · Palette generator →

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