#521246#521246

#521246 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.4% C 0.113 H 336.6°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#521246
RGBrgb(82, 18, 70)
HSLhsl(311, 64%, 20%)
HSVhsv(311, 78%, 32%)
CMYKcmyk(0%, 78%, 14.6%, 67.8%)
CIE-LABlab(18.67, 35.41, -16.57)
CIE-LCHlch(18.67, 39.10, 334.92°)
OKLaboklab(31.38% 0.104 -0.0451)
OKLCHoklch(31.38% 0.113 336.6)
XYZxyz(4.8016, 2.6691, 6.0555)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521246 #12521E
analogous
#3E1252 #521246 #521226
triadic
#521246 #465212 #124652
tetradic
#521246 #523E12 #12521E #122652
square
#521246 #523E12 #12521E #122652
split-complementary
#521246 #265212 #12523E
monochromatic
#190615 #20071B #521246 #841D71 #B6289C

Accessibility & contrast

On white

13.69
#521246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#521246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521246
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521246#FFFFFF#000000##FFFFFF
##5212461.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132747
Deuteranopia (green-blind)
#293144
Tritanopia (blue-blind)
#57162A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #521246;
/* rgb */ color: rgb(82, 18, 70);
/* oklch */ color: oklch(31.4% 0.113 336.6);
Tailwind
colors: {
  custom: {
    50: '#855779',
    500: '#521246',
    950: '#000000',
  },
}
SCSS
$custom: #521246;
$custom-light: #855779;
$custom-dark: #000000;
JSON
{
  "hex": "#521246",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 311.25,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31382,
    "c": 0.11338,
    "h": 336.6
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#521246
secondary
#358B45
accent
#E76041
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #521246

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

Preview Lab → · Contrast checker → · Palette generator →

#521246 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva