#521281#521281

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

Color values

HEX#521281
RGBrgb(82, 18, 129)
HSLhsl(275, 76%, 29%)
HSVhsv(275, 86%, 51%)
CMYKcmyk(36.4%, 86%, 0%, 49.4%)
CIE-LABlab(23.04, 47.68, -48.42)
CIE-LCHlch(23.04, 67.96, 314.56°)
OKLaboklab(35.85% 0.0959 -0.1381)
OKLCHoklch(35.85% 0.168 304.8)
XYZxyz(7.6575, 3.8115, 21.0969)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521281 #418112
analogous
#1B1281 #521281 #811279
triadic
#521281 #815212 #128152
tetradic
#521281 #811B12 #418112 #127981
square
#521281 #811B12 #418112 #127981
split-complementary
#521281 #798112 #12811B
monochromatic
#11041B #300B4B #521281 #7419B7 #952CE2

Accessibility & contrast

On white

11.92
#521281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#521281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521281
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521281#FFFFFF#000000##FFFFFF
##5212811.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521281;
/* rgb */ color: rgb(82, 18, 129);
/* oklch */ color: oklch(35.9% 0.168 304.8);
Tailwind
colors: {
  custom: {
    50: '#885aa6',
    500: '#521281',
    950: '#000000',
  },
}
SCSS
$custom: #521281;
$custom-light: #885aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#521281",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 274.595,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3585,
    "c": 0.16818,
    "h": 304.8
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#521281
secondary
#6EB738
accent
#F23685
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521281

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

Preview Lab → · Contrast checker → · Palette generator →

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