#522195#522195

#522195 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.175 H 296.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#522195
RGBrgb(82, 33, 149)
HSLhsl(265, 64%, 36%)
HSVhsv(265, 78%, 58%)
CMYKcmyk(45%, 77.9%, 0%, 41.6%)
CIE-LABlab(26.88, 46.78, -54.61)
CIE-LCHlch(26.88, 71.90, 310.58°)
OKLaboklab(39.08% 0.078 -0.1564)
OKLCHoklch(39.08% 0.175 296.5)
XYZxyz(9.4469, 5.0513, 28.9052)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522195 #649521
analogous
#212A95 #522195 #8C2195
triadic
#522195 #955221 #219552
tetradic
#522195 #95212A #649521 #21958C
square
#522195 #95212A #649521 #21958C
split-complementary
#522195 #958C21 #2A9521
monochromatic
#1B0B31 #361663 #522195 #6E2CC7 #8E57DA

Accessibility & contrast

On white

10.45
#522195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522195
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522195#FFFFFF#000000##FFFFFF
##5221951.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#40405A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522195;
/* rgb */ color: rgb(82, 33, 149);
/* oklch */ color: oklch(39.1% 0.175 296.5);
Tailwind
colors: {
  custom: {
    50: '#8a62b5',
    500: '#522195',
    950: '#000000',
  },
}
SCSS
$custom: #522195;
$custom-light: #8a62b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522195",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 265.345,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.17475,
    "h": 296.5
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#522195
secondary
#91BE54
accent
#E741A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522195

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

Preview Lab → · Contrast checker → · Palette generator →

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