#521D94#521D94

#521D94 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.178 H 297.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#521D94
RGBrgb(82, 29, 148)
HSLhsl(267, 67%, 35%)
HSVhsv(267, 80%, 58%)
CMYKcmyk(44.6%, 80.4%, 0%, 42%)
CIE-LABlab(26.19, 48.25, -55.13)
CIE-LCHlch(26.19, 73.26, 311.19°)
OKLaboklab(38.57% 0.0815 -0.1579)
OKLCHoklch(38.57% 0.178 297.3)
XYZxyz(9.2629, 4.8105, 28.4517)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D94 #5F941D
analogous
#1D2394 #521D94 #8E1D94
triadic
#521D94 #94521D #1D9452
tetradic
#521D94 #941D23 #5F941D #1D948E
square
#521D94 #941D23 #5F941D #1D948E
split-complementary
#521D94 #948E1D #23941D
monochromatic
#19092E #361361 #521D94 #6E27C7 #8E4FDC

Accessibility & contrast

On white

10.70
#521D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#521D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D94
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D94#FFFFFF#000000##FFFFFF
##521D941.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#403E59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #521d94;
/* rgb */ color: rgb(82, 29, 148);
/* oklch */ color: oklch(38.6% 0.178 297.3);
Tailwind
colors: {
  custom: {
    50: '#8a60b4',
    500: '#521d94',
    950: '#000000',
  },
}
SCSS
$custom: #521d94;
$custom-light: #8a60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#521d94",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 266.723,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38572,
    "c": 0.1777,
    "h": 297.3
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#521D94
secondary
#8DBF4E
accent
#EA3E9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521D94

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

Preview Lab → · Contrast checker → · Palette generator →

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