#52151F#52151F

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

Color values

HEX#52151F
RGBrgb(82, 21, 31)
HSLhsl(350, 59%, 20%)
HSVhsv(350, 74%, 32%)
CMYKcmyk(0%, 74.4%, 62.2%, 67.8%)
CIE-LABlab(17.60, 29.04, 9.41)
CIE-LCHlch(17.60, 30.52, 17.95°)
OKLaboklab(30.1% 0.0873 0.0233)
OKLCHoklch(30.1% 0.09 15)
XYZxyz(3.9955, 2.4296, 1.5546)
Luminance0.0243 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52151F #155248
analogous
#52153D #52151F #522915
triadic
#52151F #1F5215 #151F52
tetradic
#52151F #3D5215 #155248 #291552
square
#52151F #3D5215 #155248 #291552
split-complementary
#52151F #155229 #153D52
monochromatic
#180609 #21090D #52151F #832131 #B32E44

Accessibility & contrast

On white

14.13
#52151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#52151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52151F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52151F#FFFFFF#000000##FFFFFF
##52151F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24231F
Deuteranopia (green-blind)
#34301D
Tritanopia (blue-blind)
#5A0819
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #52151f;
/* rgb */ color: rgb(82, 21, 31);
/* oklch */ color: oklch(30.1% 0.090 15.0);
Tailwind
colors: {
  custom: {
    50: '#87575a',
    500: '#52151f',
    950: '#000000',
  },
}
SCSS
$custom: #52151f;
$custom-light: #87575a;
$custom-dark: #000000;
JSON
{
  "hex": "#52151f",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 350.164,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.30097,
    "c": 0.09033,
    "h": 15
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#52151F
secondary
#398A7D
accent
#E2C945
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #52151F

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

Preview Lab → · Contrast checker → · Palette generator →

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