#521118#521118

#521118 is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.5% C 0.095 H 19.5°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#521118
RGBrgb(82, 17, 24)
HSLhsl(354, 66%, 19%)
HSVhsv(354, 79%, 32%)
CMYKcmyk(0%, 79.3%, 70.7%, 67.8%)
CIE-LABlab(16.80, 30.26, 13.35)
CIE-LCHlch(16.80, 33.07, 23.80°)
OKLaboklab(29.45% 0.0897 0.0318)
OKLCHoklch(29.45% 0.095 19.5)
XYZxyz(3.8454, 2.2612, 1.0980)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521118 #11524B
analogous
#521139 #521118 #522A11
triadic
#521118 #185211 #111852
tetradic
#521118 #395211 #11524B #2A1152
square
#521118 #395211 #11524B #2A1152
split-complementary
#521118 #11522A #113952
monochromatic
#190507 #1F0609 #521118 #851C27 #B72636

Accessibility & contrast

On white

14.46
#521118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#521118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521118
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521118#FFFFFF#000000##FFFFFF
##5211181.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232118
Deuteranopia (green-blind)
#342E16
Tritanopia (blue-blind)
#5B0014
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #521118;
/* rgb */ color: rgb(82, 17, 24);
/* oklch */ color: oklch(29.5% 0.095 19.5);
Tailwind
colors: {
  custom: {
    50: '#885554',
    500: '#521118',
    950: '#000000',
  },
}
SCSS
$custom: #521118;
$custom-light: #885554;
$custom-dark: #000000;
JSON
{
  "hex": "#521118",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 24
  },
  "hsl": {
    "h": 353.538,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29454,
    "c": 0.09516,
    "h": 19.5
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#521118
secondary
#348B82
accent
#E9D63F
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #521118

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

Preview Lab → · Contrast checker → · Palette generator →

#521118 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva