#522281#522281

#522281 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.151 H 302.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#522281
RGBrgb(82, 34, 129)
HSLhsl(270, 58%, 32%)
HSVhsv(270, 74%, 51%)
CMYKcmyk(36.4%, 73.6%, 0%, 49.4%)
CIE-LABlab(25.33, 41.10, -44.69)
CIE-LCHlch(25.33, 60.71, 312.60°)
OKLaboklab(37.46% 0.0817 -0.1273)
OKLCHoklch(37.46% 0.151 302.7)
XYZxyz(8.0132, 4.5229, 21.2155)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522281 #518122
analogous
#232281 #522281 #812281
triadic
#522281 #815222 #228152
tetradic
#522281 #812322 #518122 #228181
square
#522281 #812322 #518122 #228181
split-complementary
#522281 #818122 #228123
monochromatic
#140820 #331551 #522281 #712FB1 #8F4DD0

Accessibility & contrast

On white

11.03
#522281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#522281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522281
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522281#FFFFFF#000000##FFFFFF
##5222811.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522281;
/* rgb */ color: rgb(82, 34, 129);
/* oklch */ color: oklch(37.5% 0.151 302.7);
Tailwind
colors: {
  custom: {
    50: '#8762a6',
    500: '#522281',
    950: '#000000',
  },
}
SCSS
$custom: #522281;
$custom-light: #8762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522281",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 270.316,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37457,
    "c": 0.15125,
    "h": 302.7
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

primary
#522281
secondary
#7FB34B
accent
#E14693
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522281

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

Preview Lab → · Contrast checker → · Palette generator →

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