#521266#521266

#521266 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.142 H 316.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#521266
RGBrgb(82, 18, 102)
HSLhsl(286, 70%, 24%)
HSVhsv(286, 82%, 40%)
CMYKcmyk(19.6%, 82.4%, 0%, 60%)
CIE-LABlab(20.77, 41.61, -34.73)
CIE-LCHlch(20.77, 54.20, 320.15°)
OKLaboklab(33.56% 0.103 -0.0979)
OKLCHoklch(33.56% 0.142 316.5)
XYZxyz(6.0939, 3.1860, 12.8618)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521266 #266612
analogous
#281266 #521266 #661250
triadic
#521266 #665212 #126652
tetradic
#521266 #662812 #266612 #125066
square
#521266 #662812 #266612 #125066
split-complementary
#521266 #506612 #126628
monochromatic
#15051A #280932 #521266 #7C1B9A #A624CE

Accessibility & contrast

On white

12.83
#521266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#521266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521266
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521266#FFFFFF#000000##FFFFFF
##5212661.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#123464
Tritanopia (blue-blind)
#51253C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521266;
/* rgb */ color: rgb(82, 18, 102);
/* oklch */ color: oklch(33.6% 0.142 316.5);
Tailwind
colors: {
  custom: {
    50: '#865992',
    500: '#521266',
    950: '#000000',
  },
}
SCSS
$custom: #521266;
$custom-light: #865992;
$custom-dark: #000000;
JSON
{
  "hex": "#521266",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 285.714,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33563,
    "c": 0.1421,
    "h": 316.5
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#521266
secondary
#4F9E36
accent
#ED3B65
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521266

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

Preview Lab → · Contrast checker → · Palette generator →

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