#521DA0#521DA0

#521DA0 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.190 H 294.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#521DA0
RGBrgb(82, 29, 160)
HSLhsl(264, 69%, 37%)
HSVhsv(264, 82%, 63%)
CMYKcmyk(48.8%, 81.9%, 0%, 37.3%)
CIE-LABlab(27.33, 51.34, -60.61)
CIE-LCHlch(27.33, 79.43, 310.27°)
OKLaboklab(39.71% 0.0776 -0.1739)
OKLCHoklch(39.71% 0.19 294)
XYZxyz(10.2625, 5.2103, 33.7159)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521DA0 #6BA01D
analogous
#1D29A0 #521DA0 #941DA0
triadic
#521DA0 #A0521D #1DA052
tetradic
#521DA0 #A01D29 #6BA01D #1DA094
square
#521DA0 #A01D29 #6BA01D #1DA094
split-complementary
#521DA0 #A0941D #29A01D
monochromatic
#1D0A38 #37146C #521DA0 #6D26D4 #8F57E1

Accessibility & contrast

On white

10.28
#521DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#521DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521DA0
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521DA0#FFFFFF#000000##FFFFFF
##521DA01.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#3A4360
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #521da0;
/* rgb */ color: rgb(82, 29, 160);
/* oklch */ color: oklch(39.7% 0.190 294.0);
Tailwind
colors: {
  custom: {
    50: '#8b61bd',
    500: '#521da0',
    950: '#000000',
  },
}
SCSS
$custom: #521da0;
$custom-light: #8b61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#521da0",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 160
  },
  "hsl": {
    "h": 264.275,
    "s": 69.312,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39708,
    "c": 0.19048,
    "h": 294
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#521DA0
secondary
#97C455
accent
#EC3CA5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521DA0

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

Preview Lab → · Contrast checker → · Palette generator →

#521DA0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva