#521312#521312

#521312 is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.6% C 0.094 H 25.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#521312
RGBrgb(82, 19, 18)
HSLhsl(1, 64%, 20%)
HSVhsv(1, 78%, 32%)
CMYKcmyk(0%, 76.8%, 78%, 67.8%)
CIE-LABlab(17.01, 29.03, 17.66)
CIE-LCHlch(17.01, 33.98, 31.31°)
OKLaboklab(29.57% 0.0843 0.0406)
OKLCHoklch(29.57% 0.094 25.7)
XYZxyz(3.8222, 2.3038, 0.8156)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521312 #125152
analogous
#521231 #521312 #523312
triadic
#521312 #125213 #131252
tetradic
#521312 #315212 #125152 #331252
square
#521312 #315212 #125152 #331252
split-complementary
#521312 #125233 #123152
monochromatic
#190606 #200707 #521312 #841F1D #B62A28

Accessibility & contrast

On white

14.38
#521312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#521312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521312
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521312#FFFFFF#000000##FFFFFF
##5213121.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252111
Deuteranopia (green-blind)
#352F10
Tritanopia (blue-blind)
#5B0113
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #521312;
/* rgb */ color: rgb(82, 19, 18);
/* oklch */ color: oklch(29.6% 0.094 25.7);
Tailwind
colors: {
  custom: {
    50: '#885650',
    500: '#521312',
    950: '#000000',
  },
}
SCSS
$custom: #521312;
$custom-light: #885650;
$custom-dark: #000000;
JSON
{
  "hex": "#521312",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 18
  },
  "hsl": {
    "h": 0.938,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29573,
    "c": 0.09361,
    "h": 25.7
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#521312
secondary
#358A8B
accent
#E4E741
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #521312

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

Preview Lab → · Contrast checker → · Palette generator →

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