#522C95#522C95

#522C95 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.162 H 294.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#522C95
RGBrgb(82, 44, 149)
HSLhsl(262, 54%, 38%)
HSVhsv(262, 70%, 58%)
CMYKcmyk(45%, 70.5%, 0%, 41.6%)
CIE-LABlab(28.81, 41.34, -51.45)
CIE-LCHlch(28.81, 66.00, 308.78°)
OKLaboklab(40.45% 0.0675 -0.1472)
OKLCHoklch(40.45% 0.162 294.6)
XYZxyz(9.8037, 5.7649, 29.0241)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C95 #6F952C
analogous
#2C3B95 #522C95 #862C95
triadic
#522C95 #95522C #2C9552
tetradic
#522C95 #952C3B #6F952C #2C9586
square
#522C95 #952C3B #6F952C #2C9586
split-complementary
#522C95 #95862C #3B952C
monochromatic
#1E1037 #381E66 #522C95 #6C3AC4 #8F69D3

Accessibility & contrast

On white

9.75
#522C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#522C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C95
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C95#FFFFFF#000000##FFFFFF
##522C951.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#3F465D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522c95;
/* rgb */ color: rgb(82, 44, 149);
/* oklch */ color: oklch(40.4% 0.162 294.6);
Tailwind
colors: {
  custom: {
    50: '#8968b5',
    500: '#522c95',
    950: '#000000',
  },
}
SCSS
$custom: #522c95;
$custom-light: #8968b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522c95",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 261.714,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40449,
    "c": 0.16196,
    "h": 294.6
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#522C95
secondary
#9AB964
accent
#DE4AA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522C95

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

Preview Lab → · Contrast checker → · Palette generator →

#522C95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva