#521C8F#521C8F

#521C8F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.173 H 298.9°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#521C8F
RGBrgb(82, 28, 143)
HSLhsl(268, 67%, 34%)
HSVhsv(268, 80%, 56%)
CMYKcmyk(42.7%, 80.4%, 0%, 43.9%)
CIE-LABlab(25.59, 47.39, -53.02)
CIE-LCHlch(25.59, 71.11, 311.79°)
OKLaboklab(38.01% 0.0839 -0.1517)
OKLCHoklch(38.01% 0.173 298.9)
XYZxyz(8.8516, 4.6074, 26.4042)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C8F #598F1C
analogous
#1C1F8F #521C8F #8B1C8F
triadic
#521C8F #8F521C #1C8F52
tetradic
#521C8F #8F1C1F #598F1C #1C8F8B
square
#521C8F #8F1C1F #598F1C #1C8F8B
split-complementary
#521C8F #8F8B1C #1F8F1C
monochromatic
#170829 #35125C #521C8F #6F26C2 #8E4ADC

Accessibility & contrast

On white

10.93
#521C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#521C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521C8F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521C8F#FFFFFF#000000##FFFFFF
##521C8F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#433C55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #521c8f;
/* rgb */ color: rgb(82, 28, 143);
/* oklch */ color: oklch(38.0% 0.173 298.9);
Tailwind
colors: {
  custom: {
    50: '#895fb1',
    500: '#521c8f',
    950: '#000000',
  },
}
SCSS
$custom: #521c8f;
$custom-light: #895fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#521c8f",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 268.174,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38011,
    "c": 0.17334,
    "h": 298.9
  },
  "luminance": 0.04608
}

Semantic roles & 50–950 ramp

primary
#521C8F
secondary
#87BE49
accent
#EA3E99
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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