#521BA0#521BA0

#521BA0 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.192 H 294.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#521BA0
RGBrgb(82, 27, 160)
HSLhsl(265, 71%, 37%)
HSVhsv(265, 83%, 63%)
CMYKcmyk(48.8%, 83.1%, 0%, 37.3%)
CIE-LABlab(27.06, 52.11, -61.04)
CIE-LCHlch(27.06, 80.26, 310.49°)
OKLaboklab(39.53% 0.079 -0.1752)
OKLCHoklch(39.53% 0.192 294.3)
XYZxyz(10.2150, 5.1155, 33.7001)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521BA0 #69A01B
analogous
#1B27A0 #521BA0 #951BA0
triadic
#521BA0 #A0521B #1BA052
tetradic
#521BA0 #A01B27 #69A01B #1BA095
square
#521BA0 #A01B27 #69A01B #1BA095
split-complementary
#521BA0 #A0951B #27A01B
monochromatic
#1C0937 #37126C #521BA0 #6D24D4 #8E53E2

Accessibility & contrast

On white

10.38
#521BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#521BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521BA0
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521BA0#FFFFFF#000000##FFFFFF
##521BA01.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#3A435F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #521ba0;
/* rgb */ color: rgb(82, 27, 160);
/* oklch */ color: oklch(39.5% 0.192 294.3);
Tailwind
colors: {
  custom: {
    50: '#8b60bd',
    500: '#521ba0',
    950: '#000000',
  },
}
SCSS
$custom: #521ba0;
$custom-light: #8b60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#521ba0",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 264.812,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39525,
    "c": 0.19218,
    "h": 294.3
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#521BA0
secondary
#95C552
accent
#EE3AA3
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #521BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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