#522896#522896

#522896 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.168 H 295.1°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#522896
RGBrgb(82, 40, 150)
HSLhsl(263, 58%, 37%)
HSVhsv(263, 73%, 59%)
CMYKcmyk(45.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(28.15, 43.70, -53.15)
CIE-LCHlch(28.15, 68.80, 309.43°)
OKLaboklab(40.01% 0.0713 -0.1522)
OKLCHoklch(40.01% 0.168 295.1)
XYZxyz(9.7420, 5.5132, 29.3991)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522896 #6C9628
analogous
#283596 #522896 #892896
triadic
#522896 #965228 #289652
tetradic
#522896 #962835 #6C9628 #289689
square
#522896 #962835 #6C9628 #289689
split-complementary
#522896 #968928 #359628
monochromatic
#1D0E35 #381B66 #522896 #6C35C6 #8F63D5

Accessibility & contrast

On white

9.99
#522896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522896
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522896#FFFFFF#000000##FFFFFF
##5228961.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#3F445C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522896;
/* rgb */ color: rgb(82, 40, 150);
/* oklch */ color: oklch(40.0% 0.168 295.1);
Tailwind
colors: {
  custom: {
    50: '#8966b6',
    500: '#522896',
    950: '#000000',
  },
}
SCSS
$custom: #522896;
$custom-light: #8966b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522896",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 262.909,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40005,
    "c": 0.16805,
    "h": 295.1
  },
  "luminance": 0.05513
}

Semantic roles & 50–950 ramp

primary
#522896
secondary
#98BB5F
accent
#E147A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522896

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

Preview Lab → · Contrast checker → · Palette generator →

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