#520B45#520B45

#520B45 is a dark, vivid pink. Relative luminance 0.025; OKLCH L 30.7% C 0.121 H 337.0°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#520B45
RGBrgb(82, 11, 69)
HSLhsl(311, 76%, 18%)
HSVhsv(311, 87%, 32%)
CMYKcmyk(0%, 86.6%, 15.9%, 67.8%)
CIE-LABlab(17.75, 37.70, -17.31)
CIE-LCHlch(17.75, 41.48, 335.33°)
OKLaboklab(30.71% 0.1112 -0.0472)
OKLCHoklch(30.71% 0.121 337)
XYZxyz(4.6736, 2.4633, 5.8584)
Luminance0.0246 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520B45 #0B5218
analogous
#3B0B52 #520B45 #520B21
triadic
#520B45 #45520B #0B4552
tetradic
#520B45 #523B0B #0B5218 #0B2152
square
#520B45 #523B0B #0B5218 #0B2152
split-complementary
#520B45 #21520B #0B523B
monochromatic
#1B0417 #1C0418 #520B45 #881272 #BE19A0

Accessibility & contrast

On white

14.07
#520B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#520B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520B45
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520B45#FFFFFF#000000##FFFFFF
##520B451.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2546
Deuteranopia (green-blind)
#272F43
Tritanopia (blue-blind)
#571028
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #520b45;
/* rgb */ color: rgb(82, 11, 69);
/* oklch */ color: oklch(30.7% 0.121 337.0);
Tailwind
colors: {
  custom: {
    50: '#865479',
    500: '#520b45',
    950: '#000000',
  },
}
SCSS
$custom: #520b45;
$custom-light: #865479;
$custom-dark: #000000;
JSON
{
  "hex": "#520b45",
  "rgb": {
    "r": 82,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 310.986,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30705,
    "c": 0.12082,
    "h": 337
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#520B45
secondary
#2B8E3D
accent
#F35835
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520B45

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

Preview Lab → · Contrast checker → · Palette generator →

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