#521996#521996

#521996 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.183 H 297.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#521996
RGBrgb(82, 25, 150)
HSLhsl(267, 71%, 34%)
HSVhsv(267, 83%, 59%)
CMYKcmyk(45.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(25.84, 50.33, -56.94)
CIE-LCHlch(25.84, 75.99, 311.48°)
OKLaboklab(38.39% 0.0838 -0.1632)
OKLCHoklch(38.39% 0.183 297.2)
XYZxyz(9.3309, 4.6909, 29.2621)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521996 #5D9619
analogous
#191E96 #521996 #911996
triadic
#521996 #965219 #199652
tetradic
#521996 #96191E #5D9619 #199691
square
#521996 #96191E #5D9619 #199691
split-complementary
#521996 #969119 #1E9619
monochromatic
#19082D #351062 #521996 #6F22CA #8E49E1

Accessibility & contrast

On white

10.83
#521996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#521996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521996
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521996#FFFFFF#000000##FFFFFF
##5219961.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#403E59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #521996;
/* rgb */ color: rgb(82, 25, 150);
/* oklch */ color: oklch(38.4% 0.183 297.2);
Tailwind
colors: {
  custom: {
    50: '#8a5eb6',
    500: '#521996',
    950: '#000000',
  },
}
SCSS
$custom: #521996;
$custom-light: #8a5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#521996",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 267.36,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38385,
    "c": 0.18344,
    "h": 297.2
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#521996
secondary
#8BC249
accent
#EE3A9C
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #521996

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

Preview Lab → · Contrast checker → · Palette generator →

#521996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva