#522596#522596

#522596 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.172 H 295.6°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#522596
RGBrgb(82, 37, 150)
HSLhsl(264, 60%, 37%)
HSVhsv(264, 75%, 59%)
CMYKcmyk(45.3%, 75.3%, 0%, 41.2%)
CIE-LABlab(27.62, 45.18, -54.01)
CIE-LCHlch(27.62, 70.41, 309.91°)
OKLaboklab(39.63% 0.0741 -0.1547)
OKLCHoklch(39.63% 0.172 295.6)
XYZxyz(9.6448, 5.3187, 29.3667)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522596 #699625
analogous
#253096 #522596 #8B2596
triadic
#522596 #965225 #259652
tetradic
#522596 #962530 #699625 #25968B
square
#522596 #962530 #699625 #25968B
split-complementary
#522596 #968B25 #309625
monochromatic
#1C0D34 #371965 #522596 #6D31C7 #8E5ED7

Accessibility & contrast

On white

10.18
#522596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522596
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522596#FFFFFF#000000##FFFFFF
##5225961.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#3F435C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522596;
/* rgb */ color: rgb(82, 37, 150);
/* oklch */ color: oklch(39.6% 0.172 295.6);
Tailwind
colors: {
  custom: {
    50: '#8964b6',
    500: '#522596',
    950: '#000000',
  },
}
SCSS
$custom: #522596;
$custom-light: #8964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522596",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 263.894,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39633,
    "c": 0.17151,
    "h": 295.6
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#522596
secondary
#95BC5B
accent
#E444A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522596

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

Preview Lab → · Contrast checker → · Palette generator →

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