#52151D#52151D

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

Color values

HEX#52151D
RGBrgb(82, 21, 29)
HSLhsl(352, 59%, 20%)
HSVhsv(352, 74%, 32%)
CMYKcmyk(0%, 74.4%, 64.6%, 67.8%)
CIE-LABlab(17.55, 28.87, 10.77)
CIE-LCHlch(17.55, 30.81, 20.45°)
OKLaboklab(30.05% 0.0864 0.0264)
OKLCHoklch(30.05% 0.09 17)
XYZxyz(3.9700, 2.4194, 1.4201)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52151D #15524A
analogous
#52153B #52151D #522B15
triadic
#52151D #1D5215 #151D52
tetradic
#52151D #3B5215 #15524A #2B1552
square
#52151D #3B5215 #15524A #2B1552
split-complementary
#52151D #15522B #153B52
monochromatic
#180609 #21090C #52151D #83212E #B32E3F

Accessibility & contrast

On white

14.15
#52151D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52151D
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52151D#FFFFFF#000000##FFFFFF
##52151D1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231D
Deuteranopia (green-blind)
#34301B
Tritanopia (blue-blind)
#5A0718
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52151d;
/* rgb */ color: rgb(82, 21, 29);
/* oklch */ color: oklch(30.0% 0.090 17.0);
Tailwind
colors: {
  custom: {
    50: '#875758',
    500: '#52151d',
    950: '#000000',
  },
}
SCSS
$custom: #52151d;
$custom-light: #875758;
$custom-dark: #000000;
JSON
{
  "hex": "#52151d",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 29
  },
  "hsl": {
    "h": 352.131,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30046,
    "c": 0.09029,
    "h": 17
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#52151D
secondary
#398A7F
accent
#E2CE45
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52151D

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

Preview Lab → · Contrast checker → · Palette generator →

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