#520B40#520B40

#520B40 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.4% C 0.117 H 340.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#520B40
RGBrgb(82, 11, 64)
HSLhsl(315, 76%, 18%)
HSVhsv(315, 87%, 32%)
CMYKcmyk(0%, 86.6%, 22%, 67.8%)
CIE-LABlab(17.48, 36.91, -14.26)
CIE-LCHlch(17.48, 39.57, 338.88°)
OKLaboklab(30.42% 0.1106 -0.0385)
OKLCHoklch(30.42% 0.117 340.8)
XYZxyz(4.5249, 2.4038, 5.0752)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B40 #0B521D
analogous
#400B52 #520B40 #520B1C
triadic
#520B40 #40520B #0B4052
tetradic
#520B40 #52400B #0B521D #0B1C52
square
#520B40 #52400B #0B521D #0B1C52
split-complementary
#520B40 #1C520B #0B5240
monochromatic
#1B0415 #1C0416 #520B40 #88126A #BE1994

Accessibility & contrast

On white

14.18
#520B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#520B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B40
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B40#FFFFFF#000000##FFFFFF
##520B401.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)
#122441
Deuteranopia (green-blind)
#292F3E
Tritanopia (blue-blind)
#580D25
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #520b40;
/* rgb */ color: rgb(82, 11, 64);
/* oklch */ color: oklch(30.4% 0.117 340.8);
Tailwind
colors: {
  custom: {
    50: '#865475',
    500: '#520b40',
    950: '#000000',
  },
}
SCSS
$custom: #520b40;
$custom-light: #865475;
$custom-dark: #000000;
JSON
{
  "hex": "#520b40",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 315.211,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30419,
    "c": 0.11713,
    "h": 340.8
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#520B40
secondary
#2B8E44
accent
#F36535
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #520B40

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

Preview Lab → · Contrast checker → · Palette generator →

#520B40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva