#520F49#520F49

#520F49 is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.3% C 0.120 H 334.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#520F49
RGBrgb(82, 15, 73)
HSLhsl(308, 69%, 19%)
HSVhsv(308, 82%, 32%)
CMYKcmyk(0%, 81.7%, 11%, 67.8%)
CIE-LABlab(18.44, 37.05, -18.99)
CIE-LCHlch(18.44, 41.63, 332.86°)
OKLaboklab(31.27% 0.1077 -0.052)
OKLCHoklch(31.27% 0.12 334.2)
XYZxyz(4.8531, 2.6170, 6.5516)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F49 #0F5218
analogous
#3A0F52 #520F49 #520F28
triadic
#520F49 #49520F #0F4952
tetradic
#520F49 #523A0F #0F5218 #0F2852
square
#520F49 #523A0F #0F5218 #0F2852
split-complementary
#520F49 #28520F #0F523A
monochromatic
#1A0517 #1E061B #520F49 #861877 #B922A5

Accessibility & contrast

On white

13.78
#520F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F49
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F49#FFFFFF#000000##FFFFFF
##520F491.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E274B
Deuteranopia (green-blind)
#273047
Tritanopia (blue-blind)
#56152B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520f49;
/* rgb */ color: rgb(82, 15, 73);
/* oklch */ color: oklch(31.3% 0.120 334.2);
Tailwind
colors: {
  custom: {
    50: '#85567c',
    500: '#520f49',
    950: '#000000',
  },
}
SCSS
$custom: #520f49;
$custom-light: #85567c;
$custom-dark: #000000;
JSON
{
  "hex": "#520f49",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 308.06,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31274,
    "c": 0.11957,
    "h": 334.2
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#520F49
secondary
#318C3D
accent
#EC543C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520F49

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

Preview Lab → · Contrast checker → · Palette generator →

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