#522E7C#522E7C

#522E7C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.128 H 302.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#522E7C
RGBrgb(82, 46, 124)
HSLhsl(268, 46%, 33%)
HSVhsv(268, 63%, 49%)
CMYKcmyk(33.9%, 62.9%, 0%, 51.4%)
CIE-LABlab(27.31, 33.32, -38.34)
CIE-LCHlch(27.31, 50.80, 310.99°)
OKLaboklab(38.76% 0.0679 -0.1087)
OKLCHoklch(38.76% 0.128 302)
XYZxyz(8.0939, 5.2030, 19.6427)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E7C #587C2E
analogous
#2E317C #522E7C #792E7C
triadic
#522E7C #7C522E #2E7C52
tetradic
#522E7C #7C2E31 #587C2E #2E7C79
square
#522E7C #7C2E31 #587C2E #2E7C79
split-complementary
#522E7C #7C792E #317C2E
monochromatic
#170D23 #341D4F #522E7C #703FA9 #8E60C4

Accessibility & contrast

On white

10.29
#522E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E7C
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E7C#FFFFFF#000000##FFFFFF
##522E7C1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01407E
Deuteranopia (green-blind)
#17407A
Tritanopia (blue-blind)
#4A3E50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522e7c;
/* rgb */ color: rgb(82, 46, 124);
/* oklch */ color: oklch(38.8% 0.128 302.0);
Tailwind
colors: {
  custom: {
    50: '#8669a2',
    500: '#522e7c',
    950: '#000000',
  },
}
SCSS
$custom: #522e7c;
$custom-light: #8669a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522e7c",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 267.692,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.12815,
    "h": 302
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#522E7C
secondary
#86AB5B
accent
#D65299
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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