#522A91#522A91

#522A91 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.160 H 296.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#522A91
RGBrgb(82, 42, 145)
HSLhsl(263, 55%, 37%)
HSVhsv(263, 71%, 57%)
CMYKcmyk(43.4%, 71%, 0%, 43.1%)
CIE-LABlab(28.10, 41.29, -50.16)
CIE-LCHlch(28.10, 64.96, 309.46°)
OKLaboklab(39.84% 0.0703 -0.1434)
OKLCHoklch(39.84% 0.16 296.1)
XYZxyz(9.4171, 5.4939, 27.3468)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A91 #69912A
analogous
#2A3691 #522A91 #862A91
triadic
#522A91 #91522A #2A9152
tetradic
#522A91 #912A36 #69912A #2A9186
square
#522A91 #912A36 #69912A #2A9186
split-complementary
#522A91 #91862A #36912A
monochromatic
#1C0F32 #371C62 #522A91 #6D38C0 #8E63D2

Accessibility & contrast

On white

10.01
#522A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A91
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A91#FFFFFF#000000##FFFFFF
##522A911.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#41435A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522a91;
/* rgb */ color: rgb(82, 42, 145);
/* oklch */ color: oklch(39.8% 0.160 296.1);
Tailwind
colors: {
  custom: {
    50: '#8867b2',
    500: '#522a91',
    950: '#000000',
  },
}
SCSS
$custom: #522a91;
$custom-light: #8867b2;
$custom-dark: #000000;
JSON
{
  "hex": "#522a91",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 263.301,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39837,
    "c": 0.15969,
    "h": 296.1
  },
  "luminance": 0.05494
}

Semantic roles & 50–950 ramp

primary
#522A91
secondary
#95B85F
accent
#DE49A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A91

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

Preview Lab → · Contrast checker → · Palette generator →

#522A91 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva