#520F48#520F48

#520F48 is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.119 H 334.9°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#520F48
RGBrgb(82, 15, 72)
HSLhsl(309, 69%, 19%)
HSVhsv(309, 82%, 32%)
CMYKcmyk(0%, 81.7%, 12.2%, 67.8%)
CIE-LABlab(18.38, 36.88, -18.40)
CIE-LCHlch(18.38, 41.21, 333.49°)
OKLaboklab(31.21% 0.1076 -0.0503)
OKLCHoklch(31.21% 0.119 334.9)
XYZxyz(4.8203, 2.6038, 6.3784)
Luminance0.0260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F48 #0F5219
analogous
#3B0F52 #520F48 #520F27
triadic
#520F48 #48520F #0F4852
tetradic
#520F48 #523B0F #0F5219 #0F2752
square
#520F48 #523B0F #0F5219 #0F2752
split-complementary
#520F48 #27520F #0F523B
monochromatic
#1A0517 #1E061B #520F48 #861875 #B922A3

Accessibility & contrast

On white

13.81
#520F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#520F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F48
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F48#FFFFFF#000000##FFFFFF
##520F481.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F274A
Deuteranopia (green-blind)
#273046
Tritanopia (blue-blind)
#56152A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520f48;
/* rgb */ color: rgb(82, 15, 72);
/* oklch */ color: oklch(31.2% 0.119 334.9);
Tailwind
colors: {
  custom: {
    50: '#85567b',
    500: '#520f48',
    950: '#000000',
  },
}
SCSS
$custom: #520f48;
$custom-light: #85567b;
$custom-dark: #000000;
JSON
{
  "hex": "#520f48",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 308.955,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31213,
    "c": 0.11876,
    "h": 334.9
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

primary
#520F48
secondary
#318C3E
accent
#EC563C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520F48

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

Preview Lab → · Contrast checker → · Palette generator →

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