#522696#522696

#522696 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.170 H 295.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#522696
RGBrgb(82, 38, 150)
HSLhsl(264, 60%, 37%)
HSVhsv(264, 75%, 59%)
CMYKcmyk(45.3%, 74.7%, 0%, 41.2%)
CIE-LABlab(27.80, 44.69, -53.72)
CIE-LCHlch(27.80, 69.88, 309.76°)
OKLaboklab(39.76% 0.0732 -0.1538)
OKLCHoklch(39.76% 0.17 295.5)
XYZxyz(9.6763, 5.3818, 29.3772)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522696 #6A9626
analogous
#263296 #522696 #8A2696
triadic
#522696 #965226 #269652
tetradic
#522696 #962632 #6A9626 #26968A
square
#522696 #962632 #6A9626 #26968A
split-complementary
#522696 #968A26 #329626
monochromatic
#1D0D34 #371A65 #522696 #6D32C7 #8E60D7

Accessibility & contrast

On white

10.11
#522696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522696
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522696#FFFFFF#000000##FFFFFF
##5226961.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522696;
/* rgb */ color: rgb(82, 38, 150);
/* oklch */ color: oklch(39.8% 0.170 295.5);
Tailwind
colors: {
  custom: {
    50: '#8965b6',
    500: '#522696',
    950: '#000000',
  },
}
SCSS
$custom: #522696;
$custom-light: #8965b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522696",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 263.571,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39755,
    "c": 0.17038,
    "h": 295.5
  },
  "luminance": 0.05382
}

Semantic roles & 50–950 ramp

primary
#522696
secondary
#96BC5C
accent
#E345A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522696

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

Preview Lab → · Contrast checker → · Palette generator →

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