#521381#521381

#521381 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.167 H 304.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#521381
RGBrgb(82, 19, 129)
HSLhsl(274, 74%, 29%)
HSVhsv(274, 85%, 51%)
CMYKcmyk(36.4%, 85.3%, 0%, 49.4%)
CIE-LABlab(23.15, 47.35, -48.24)
CIE-LCHlch(23.15, 67.60, 314.47°)
OKLaboklab(35.93% 0.0952 -0.1376)
OKLCHoklch(35.93% 0.167 304.7)
XYZxyz(7.6741, 3.8446, 21.1024)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521381 #428113
analogous
#1B1381 #521381 #811379
triadic
#521381 #815213 #138152
tetradic
#521381 #811B13 #428113 #137981
square
#521381 #811B13 #428113 #137981
split-complementary
#521381 #798113 #13811B
monochromatic
#11041B #300B4C #521381 #741BB6 #942EE0

Accessibility & contrast

On white

11.87
#521381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#521381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521381
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521381#FFFFFF#000000##FFFFFF
##5213811.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#49324C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521381;
/* rgb */ color: rgb(82, 19, 129);
/* oklch */ color: oklch(35.9% 0.167 304.7);
Tailwind
colors: {
  custom: {
    50: '#885ba6',
    500: '#521381',
    950: '#000000',
  },
}
SCSS
$custom: #521381;
$custom-light: #885ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#521381",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 274.364,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35928,
    "c": 0.16734,
    "h": 304.7
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#521381
secondary
#6FB63A
accent
#F13786
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521381

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

Preview Lab → · Contrast checker → · Palette generator →

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