#521981#521981

#521981 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.162 H 304.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#521981
RGBrgb(82, 25, 129)
HSLhsl(273, 68%, 30%)
HSVhsv(273, 81%, 51%)
CMYKcmyk(36.4%, 80.6%, 0%, 49.4%)
CIE-LABlab(23.91, 45.13, -46.99)
CIE-LCHlch(23.91, 65.15, 313.84°)
OKLaboklab(36.46% 0.0905 -0.134)
OKLCHoklch(36.46% 0.162 304)
XYZxyz(7.7888, 4.0741, 21.1407)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521981 #488119
analogous
#1E1981 #521981 #81197C
triadic
#521981 #815219 #198152
tetradic
#521981 #811E19 #488119 #197C81
square
#521981 #811E19 #488119 #197C81
split-complementary
#521981 #7C8119 #19811E
monochromatic
#11051A #310F4E #521981 #7323B4 #923BD9

Accessibility & contrast

On white

11.57
#521981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#521981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521981
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521981#FFFFFF#000000##FFFFFF
##5219811.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#49344D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #521981;
/* rgb */ color: rgb(82, 25, 129);
/* oklch */ color: oklch(36.5% 0.162 304.0);
Tailwind
colors: {
  custom: {
    50: '#885da6',
    500: '#521981',
    950: '#000000',
  },
}
SCSS
$custom: #521981;
$custom-light: #885da6;
$custom-dark: #000000;
JSON
{
  "hex": "#521981",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 272.885,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3646,
    "c": 0.16166,
    "h": 304
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#521981
secondary
#75B541
accent
#EA3D8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #521981

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

Preview Lab → · Contrast checker → · Palette generator →

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