#522E8C#522E8C

#522E8C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.148 H 296.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#522E8C
RGBrgb(82, 46, 140)
HSLhsl(263, 51%, 36%)
HSVhsv(263, 67%, 55%)
CMYKcmyk(41.4%, 67.1%, 0%, 45.1%)
CIE-LABlab(28.49, 37.72, -46.43)
CIE-LCHlch(28.49, 59.82, 309.09°)
OKLaboklab(39.99% 0.0667 -0.1324)
OKLCHoklch(39.99% 0.148 296.7)
XYZxyz(9.1891, 5.6411, 25.4106)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E8C #688C2E
analogous
#2E398C #522E8C #812E8C
triadic
#522E8C #8C522E #2E8C52
tetradic
#522E8C #8C2E39 #688C2E #2E8C81
square
#522E8C #8C2E39 #688C2E #2E8C81
split-complementary
#522E8C #8C812E #398C2E
monochromatic
#1C1030 #371F5E #522E8C #6D3DBA #8E67CD

Accessibility & contrast

On white

9.87
#522E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E8C
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E8C#FFFFFF#000000##FFFFFF
##522E8C1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#434459
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522e8c;
/* rgb */ color: rgb(82, 46, 140);
/* oklch */ color: oklch(40.0% 0.148 296.7);
Tailwind
colors: {
  custom: {
    50: '#8769ae',
    500: '#522e8c',
    950: '#000000',
  },
}
SCSS
$custom: #522e8c;
$custom-light: #8769ae;
$custom-dark: #000000;
JSON
{
  "hex": "#522e8c",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 140
  },
  "hsl": {
    "h": 262.979,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39991,
    "c": 0.14827,
    "h": 296.7
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#522E8C
secondary
#95B462
accent
#DA4EA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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