#52151E#52151E

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

Color values

HEX#52151E
RGBrgb(82, 21, 30)
HSLhsl(351, 59%, 20%)
HSVhsv(351, 74%, 32%)
CMYKcmyk(0%, 74.4%, 63.4%, 67.8%)
CIE-LABlab(17.57, 28.95, 10.09)
CIE-LCHlch(17.57, 30.66, 19.21°)
OKLaboklab(30.07% 0.0868 0.0249)
OKLCHoklch(30.07% 0.09 16)
XYZxyz(3.9826, 2.4245, 1.4863)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52151E #155249
analogous
#52153C #52151E #522B15
triadic
#52151E #1E5215 #151E52
tetradic
#52151E #3C5215 #155249 #2B1552
square
#52151E #3C5215 #155249 #2B1552
split-complementary
#52151E #15522B #153C52
monochromatic
#180609 #21090C #52151E #832130 #B32E42

Accessibility & contrast

On white

14.14
#52151E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52151E
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52151E#FFFFFF#000000##FFFFFF
##52151E1.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231E
Deuteranopia (green-blind)
#34301C
Tritanopia (blue-blind)
#5A0819
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52151e;
/* rgb */ color: rgb(82, 21, 30);
/* oklch */ color: oklch(30.1% 0.090 16.0);
Tailwind
colors: {
  custom: {
    50: '#875759',
    500: '#52151e',
    950: '#000000',
  },
}
SCSS
$custom: #52151e;
$custom-light: #875759;
$custom-dark: #000000;
JSON
{
  "hex": "#52151e",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 30
  },
  "hsl": {
    "h": 351.148,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30071,
    "c": 0.0903,
    "h": 16
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#52151E
secondary
#398A7E
accent
#E2CB45
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52151E

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

Preview Lab → · Contrast checker → · Palette generator →

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