#522595#522595

#522595 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.170 H 295.9°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#522595
RGBrgb(82, 37, 149)
HSLhsl(264, 60%, 36%)
HSVhsv(264, 75%, 58%)
CMYKcmyk(45%, 75.2%, 0%, 41.6%)
CIE-LABlab(27.54, 44.91, -53.53)
CIE-LCHlch(27.54, 69.88, 309.99°)
OKLaboklab(39.54% 0.0744 -0.1533)
OKLCHoklch(39.54% 0.17 295.9)
XYZxyz(9.5646, 5.2867, 28.9444)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522595 #689525
analogous
#253095 #522595 #8A2595
triadic
#522595 #955225 #259552
tetradic
#522595 #952530 #689525 #25958A
square
#522595 #952530 #689525 #25958A
split-complementary
#522595 #958A25 #309525
monochromatic
#1C0D33 #371964 #522595 #6D31C6 #8E5ED7

Accessibility & contrast

On white

10.21
#522595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522595
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522595#FFFFFF#000000##FFFFFF
##5225951.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#40425B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522595;
/* rgb */ color: rgb(82, 37, 149);
/* oklch */ color: oklch(39.5% 0.170 295.9);
Tailwind
colors: {
  custom: {
    50: '#8964b5',
    500: '#522595',
    950: '#000000',
  },
}
SCSS
$custom: #522595;
$custom-light: #8964b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522595",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 264.107,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39544,
    "c": 0.17037,
    "h": 295.9
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#522595
secondary
#95BC5A
accent
#E344A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522595

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

Preview Lab → · Contrast checker → · Palette generator →

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