#521881#521881

#521881 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.163 H 304.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#521881
RGBrgb(82, 24, 129)
HSLhsl(273, 69%, 30%)
HSVhsv(273, 81%, 51%)
CMYKcmyk(36.4%, 81.4%, 0%, 49.4%)
CIE-LABlab(23.78, 45.53, -47.22)
CIE-LCHlch(23.78, 65.59, 313.96°)
OKLaboklab(36.36% 0.0913 -0.1346)
OKLCHoklch(36.36% 0.163 304.1)
XYZxyz(7.7678, 4.0321, 21.1337)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521881 #478118
analogous
#1E1881 #521881 #81187B
triadic
#521881 #815218 #188152
tetradic
#521881 #811E18 #478118 #187B81
square
#521881 #811E18 #478118 #187B81
split-complementary
#521881 #7B8118 #18811E
monochromatic
#10051A #310E4D #521881 #7322B5 #9239DA

Accessibility & contrast

On white

11.63
#521881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521881
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521881#FFFFFF#000000##FFFFFF
##5218811.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521881;
/* rgb */ color: rgb(82, 24, 129);
/* oklch */ color: oklch(36.4% 0.163 304.1);
Tailwind
colors: {
  custom: {
    50: '#885da6',
    500: '#521881',
    950: '#000000',
  },
}
SCSS
$custom: #521881;
$custom-light: #885da6;
$custom-dark: #000000;
JSON
{
  "hex": "#521881",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 273.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.36364,
    "c": 0.16268,
    "h": 304.1
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#521881
secondary
#74B540
accent
#EB3C8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521881

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

Preview Lab → · Contrast checker → · Palette generator →

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