#520F46#520F46

#520F46 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.117 H 336.4°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#520F46
RGBrgb(82, 15, 70)
HSLhsl(311, 69%, 19%)
HSVhsv(311, 82%, 32%)
CMYKcmyk(0%, 81.7%, 14.6%, 67.8%)
CIE-LABlab(18.27, 36.54, -17.19)
CIE-LCHlch(18.27, 40.39, 334.80°)
OKLaboklab(31.1% 0.1074 -0.0469)
OKLCHoklch(31.1% 0.117 336.4)
XYZxyz(4.7561, 2.5781, 6.0403)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F46 #0F521B
analogous
#3D0F52 #520F46 #520F25
triadic
#520F46 #46520F #0F4652
tetradic
#520F46 #523D0F #0F521B #0F2552
square
#520F46 #523D0F #0F521B #0F2552
split-complementary
#520F46 #25520F #0F523D
monochromatic
#1A0516 #1E061A #520F46 #861872 #B9229E

Accessibility & contrast

On white

13.86
#520F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F46
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F46#FFFFFF#000000##FFFFFF
##520F461.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102647
Deuteranopia (green-blind)
#283044
Tritanopia (blue-blind)
#571429
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #520f46;
/* rgb */ color: rgb(82, 15, 70);
/* oklch */ color: oklch(31.1% 0.117 336.4);
Tailwind
colors: {
  custom: {
    50: '#855679',
    500: '#520f46',
    950: '#000000',
  },
}
SCSS
$custom: #520f46;
$custom-light: #855679;
$custom-dark: #000000;
JSON
{
  "hex": "#520f46",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 310.746,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31095,
    "c": 0.11717,
    "h": 336.4
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#520F46
secondary
#318C41
accent
#EC5B3C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #520F46

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

Preview Lab → · Contrast checker → · Palette generator →

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