#520F42#520F42

#520F42 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.9% C 0.114 H 339.5°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#520F42
RGBrgb(82, 15, 66)
HSLhsl(314, 69%, 19%)
HSVhsv(314, 82%, 32%)
CMYKcmyk(0%, 81.7%, 19.5%, 67.8%)
CIE-LABlab(18.05, 35.89, -14.76)
CIE-LCHlch(18.05, 38.81, 337.64°)
OKLaboklab(30.87% 0.1069 -0.0399)
OKLCHoklch(30.87% 0.114 339.5)
XYZxyz(4.6340, 2.5293, 5.3974)
Luminance0.0253 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F42 #0F521F
analogous
#410F52 #520F42 #520F21
triadic
#520F42 #42520F #0F4252
tetradic
#520F42 #52410F #0F521F #0F2152
square
#520F42 #52410F #0F521F #0F2152
split-complementary
#520F42 #21520F #0F5241
monochromatic
#1A0515 #1E0618 #520F42 #86186C #B92295

Accessibility & contrast

On white

13.95
#520F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#520F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F42
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F42#FFFFFF#000000##FFFFFF
##520F421.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132543
Deuteranopia (green-blind)
#2A3040
Tritanopia (blue-blind)
#571227
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #520f42;
/* rgb */ color: rgb(82, 15, 66);
/* oklch */ color: oklch(30.9% 0.114 339.5);
Tailwind
colors: {
  custom: {
    50: '#855676',
    500: '#520f42',
    950: '#000000',
  },
}
SCSS
$custom: #520f42;
$custom-light: #855676;
$custom-dark: #000000;
JSON
{
  "hex": "#520f42",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 314.328,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30867,
    "c": 0.11409,
    "h": 339.5
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#520F42
secondary
#318C47
accent
#EC663C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #520F42

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

Preview Lab → · Contrast checker → · Palette generator →

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