#522296#522296

#522296 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.175 H 296.1°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#522296
RGBrgb(82, 34, 150)
HSLhsl(265, 63%, 36%)
HSVhsv(265, 77%, 59%)
CMYKcmyk(45.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(27.13, 46.59, -54.82)
CIE-LCHlch(27.13, 71.94, 310.36°)
OKLaboklab(39.28% 0.0768 -0.157)
OKLCHoklch(39.28% 0.175 296.1)
XYZxyz(9.5553, 5.1397, 29.3369)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522296 #669622
analogous
#222C96 #522296 #8C2296
triadic
#522296 #965222 #229652
tetradic
#522296 #96222C #669622 #22968C
square
#522296 #96222C #669622 #22968C
split-complementary
#522296 #968C22 #2C9622
monochromatic
#1B0B32 #371764 #522296 #6D2DC8 #8E59D9

Accessibility & contrast

On white

10.36
#522296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522296
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522296#FFFFFF#000000##FFFFFF
##5222961.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#3F415B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522296;
/* rgb */ color: rgb(82, 34, 150);
/* oklch */ color: oklch(39.3% 0.175 296.1);
Tailwind
colors: {
  custom: {
    50: '#8a63b6',
    500: '#522296',
    950: '#000000',
  },
}
SCSS
$custom: #522296;
$custom-light: #8a63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522296",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 264.828,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39285,
    "c": 0.1748,
    "h": 296.1
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#522296
secondary
#93BE56
accent
#E642A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522296

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

Preview Lab → · Contrast checker → · Palette generator →

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