#52151A#52151A

#52151A is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.0% C 0.090 H 19.9°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#52151A
RGBrgb(82, 21, 26)
HSLhsl(355, 59%, 20%)
HSVhsv(355, 74%, 32%)
CMYKcmyk(0%, 74.4%, 68.3%, 67.8%)
CIE-LABlab(17.48, 28.64, 12.81)
CIE-LCHlch(17.48, 31.37, 24.09°)
OKLaboklab(29.98% 0.085 0.0308)
OKLCHoklch(29.98% 0.09 19.9)
XYZxyz(3.9347, 2.4053, 1.2342)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52151A #15524D
analogous
#521538 #52151A #522E15
triadic
#52151A #1A5215 #151A52
tetradic
#52151A #385215 #15524D #2E1552
square
#52151A #385215 #15524D #2E1552
split-complementary
#52151A #15522E #153852
monochromatic
#180608 #21090B #52151A #832129 #B32E39

Accessibility & contrast

On white

14.18
#52151A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#52151A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52151A
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52151A#FFFFFF#000000##FFFFFF
##52151A1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231A
Deuteranopia (green-blind)
#353018
Tritanopia (blue-blind)
#5B0617
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52151a;
/* rgb */ color: rgb(82, 21, 26);
/* oklch */ color: oklch(30.0% 0.090 19.9);
Tailwind
colors: {
  custom: {
    50: '#885756',
    500: '#52151a',
    950: '#000000',
  },
}
SCSS
$custom: #52151a;
$custom-light: #885756;
$custom-dark: #000000;
JSON
{
  "hex": "#52151a",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 26
  },
  "hsl": {
    "h": 355.082,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29976,
    "c": 0.09039,
    "h": 19.9
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#52151A
secondary
#398A83
accent
#E2D645
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52151A

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

Preview Lab → · Contrast checker → · Palette generator →

#52151A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva