#52151B#52151B

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

Color values

HEX#52151B
RGBrgb(82, 21, 27)
HSLhsl(354, 59%, 20%)
HSVhsv(354, 74%, 32%)
CMYKcmyk(0%, 74.4%, 67.1%, 67.8%)
CIE-LABlab(17.51, 28.71, 12.13)
CIE-LCHlch(17.51, 31.17, 22.90°)
OKLaboklab(30% 0.0854 0.0294)
OKLCHoklch(30% 0.09 19)
XYZxyz(3.9461, 2.4099, 1.2941)
Luminance0.0241 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52151B #15524C
analogous
#52153A #52151B #522D15
triadic
#52151B #1B5215 #151B52
tetradic
#52151B #3A5215 #15524C #2D1552
square
#52151B #3A5215 #15524C #2D1552
split-complementary
#52151B #15522D #153A52
monochromatic
#180608 #21090B #52151B #83212B #B32E3B

Accessibility & contrast

On white

14.17
#52151B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52151B
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52151B#FFFFFF#000000##FFFFFF
##52151B1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52151b;
/* rgb */ color: rgb(82, 21, 27);
/* oklch */ color: oklch(30.0% 0.090 19.0);
Tailwind
colors: {
  custom: {
    50: '#875757',
    500: '#52151b',
    950: '#000000',
  },
}
SCSS
$custom: #52151b;
$custom-light: #875757;
$custom-dark: #000000;
JSON
{
  "hex": "#52151b",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 27
  },
  "hsl": {
    "h": 354.098,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29999,
    "c": 0.09034,
    "h": 19
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#52151B
secondary
#398A82
accent
#E2D345
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52151B

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

Preview Lab → · Contrast checker → · Palette generator →

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