#522381#522381

#522381 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.150 H 302.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#522381
RGBrgb(82, 35, 129)
HSLhsl(270, 57%, 32%)
HSVhsv(270, 73%, 51%)
CMYKcmyk(36.4%, 72.9%, 0%, 49.4%)
CIE-LABlab(25.51, 40.60, -44.40)
CIE-LCHlch(25.51, 60.17, 312.44°)
OKLaboklab(37.58% 0.0807 -0.1264)
OKLCHoklch(37.58% 0.15 302.5)
XYZxyz(8.0422, 4.5809, 21.2251)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522381 #528123
analogous
#232381 #522381 #812381
triadic
#522381 #815223 #238152
tetradic
#522381 #812323 #528123 #238181
square
#522381 #812323 #528123 #238181
split-complementary
#522381 #818123 #238123
monochromatic
#150921 #331651 #522381 #7130B1 #8F4FCF

Accessibility & contrast

On white

10.96
#522381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#522381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522381
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522381#FFFFFF#000000##FFFFFF
##5223811.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#48394F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522381;
/* rgb */ color: rgb(82, 35, 129);
/* oklch */ color: oklch(37.6% 0.150 302.5);
Tailwind
colors: {
  custom: {
    50: '#8762a6',
    500: '#522381',
    950: '#000000',
  },
}
SCSS
$custom: #522381;
$custom-light: #8762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522381",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 270,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37582,
    "c": 0.14997,
    "h": 302.5
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#522381
secondary
#80B34D
accent
#E14794
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #522381

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

Preview Lab → · Contrast checker → · Palette generator →

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