#522E8F#522E8F

#522E8F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.152 H 295.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#522E8F
RGBrgb(82, 46, 143)
HSLhsl(262, 51%, 37%)
HSVhsv(262, 68%, 56%)
CMYKcmyk(42.7%, 67.8%, 0%, 43.9%)
CIE-LABlab(28.72, 38.56, -47.91)
CIE-LCHlch(28.72, 61.50, 308.83°)
OKLaboklab(40.23% 0.0663 -0.1368)
OKLCHoklch(40.23% 0.152 295.9)
XYZxyz(9.4133, 5.7308, 26.5915)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E8F #6B8F2E
analogous
#2E3B8F #522E8F #832E8F
triadic
#522E8F #8F522E #2E8F52
tetradic
#522E8F #8F2E3B #6B8F2E #2E8F83
square
#522E8F #8F2E3B #6B8F2E #2E8F83
split-complementary
#522E8F #8F832E #3B8F2E
monochromatic
#1D1032 #371F61 #522E8F #6D3DBD #8F69CF

Accessibility & contrast

On white

9.78
#522E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522E8F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E8F#FFFFFF#000000##FFFFFF
##522E8F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#42455A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522e8f;
/* rgb */ color: rgb(82, 46, 143);
/* oklch */ color: oklch(40.2% 0.152 295.9);
Tailwind
colors: {
  custom: {
    50: '#8869b1',
    500: '#522e8f',
    950: '#000000',
  },
}
SCSS
$custom: #522e8f;
$custom-light: #8869b1;
$custom-dark: #000000;
JSON
{
  "hex": "#522e8f",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 262.268,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40234,
    "c": 0.152,
    "h": 295.9
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#522E8F
secondary
#97B663
accent
#DB4DA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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