#521C94#521C94

#521C94 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.179 H 297.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#521C94
RGBrgb(82, 28, 148)
HSLhsl(267, 68%, 35%)
HSVhsv(267, 81%, 58%)
CMYKcmyk(44.6%, 81.1%, 0%, 42%)
CIE-LABlab(26.05, 48.66, -55.36)
CIE-LCHlch(26.05, 73.70, 311.32°)
OKLaboklab(38.47% 0.0823 -0.1586)
OKLCHoklch(38.47% 0.179 297.4)
XYZxyz(9.2388, 4.7623, 28.4437)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C94 #5E941C
analogous
#1C2294 #521C94 #8E1C94
triadic
#521C94 #94521C #1C9452
tetradic
#521C94 #941C22 #5E941C #1C948E
square
#521C94 #941C22 #5E941C #1C948E
split-complementary
#521C94 #948E1C #22941C
monochromatic
#19092D #351261 #521C94 #6F26C7 #8E4DDD

Accessibility & contrast

On white

10.76
#521C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#521C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521C94
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521C94#FFFFFF#000000##FFFFFF
##521C941.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#413E58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #521c94;
/* rgb */ color: rgb(82, 28, 148);
/* oklch */ color: oklch(38.5% 0.179 297.4);
Tailwind
colors: {
  custom: {
    50: '#8a60b4',
    500: '#521c94',
    950: '#000000',
  },
}
SCSS
$custom: #521c94;
$custom-light: #8a60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#521c94",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 267,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38473,
    "c": 0.17866,
    "h": 297.4
  },
  "luminance": 0.04762
}

Semantic roles & 50–950 ramp

primary
#521C94
secondary
#8CC04C
accent
#EB3D9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521C94

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

Preview Lab → · Contrast checker → · Palette generator →

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