#522395#522395

#522395 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.173 H 296.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#522395
RGBrgb(82, 35, 149)
HSLhsl(265, 62%, 36%)
HSVhsv(265, 77%, 58%)
CMYKcmyk(45%, 76.5%, 0%, 41.6%)
CIE-LABlab(27.20, 45.86, -54.08)
CIE-LCHlch(27.20, 70.91, 310.30°)
OKLaboklab(39.31% 0.0762 -0.1549)
OKLCHoklch(39.31% 0.173 296.2)
XYZxyz(9.5041, 5.1656, 28.9243)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522395 #669523
analogous
#232D95 #522395 #8B2395
triadic
#522395 #955223 #239552
tetradic
#522395 #95232D #669523 #23958B
square
#522395 #95232D #669523 #23958B
split-complementary
#522395 #958B23 #2D9523
monochromatic
#1B0C32 #371763 #522395 #6D2FC7 #8E5AD8

Accessibility & contrast

On white

10.33
#522395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522395
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522395#FFFFFF#000000##FFFFFF
##5223951.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#40415A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522395;
/* rgb */ color: rgb(82, 35, 149);
/* oklch */ color: oklch(39.3% 0.173 296.2);
Tailwind
colors: {
  custom: {
    50: '#8963b5',
    500: '#522395',
    950: '#000000',
  },
}
SCSS
$custom: #522395;
$custom-light: #8963b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522395",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 149
  },
  "hsl": {
    "h": 264.737,
    "s": 61.957,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39309,
    "c": 0.1726,
    "h": 296.2
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#522395
secondary
#93BD57
accent
#E543A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522395

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

Preview Lab → · Contrast checker → · Palette generator →

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