#522C7E#522C7E

#522C7E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.134 H 301.8°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#522C7E
RGBrgb(82, 44, 126)
HSLhsl(268, 48%, 33%)
HSVhsv(268, 65%, 49%)
CMYKcmyk(34.9%, 65.1%, 0%, 50.6%)
CIE-LABlab(27.02, 35.00, -40.06)
CIE-LCHlch(27.02, 53.20, 311.14°)
OKLaboklab(38.6% 0.0704 -0.1137)
OKLCHoklch(38.6% 0.134 301.8)
XYZxyz(8.1454, 5.1015, 20.2902)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C7E #587E2C
analogous
#2C2F7E #522C7E #7B2C7E
triadic
#522C7E #7E522C #2C7E52
tetradic
#522C7E #7E2C2F #587E2C #2C7E7B
square
#522C7E #7E2C2F #587E2C #2C7E7B
split-complementary
#522C7E #7E7B2C #2F7E2C
monochromatic
#170C23 #341C51 #522C7E #703CAB #8E5EC7

Accessibility & contrast

On white

10.39
#522C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C7E
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C7E#FFFFFF#000000##FFFFFF
##522C7E1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#103F7C
Tritanopia (blue-blind)
#493E50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522c7e;
/* rgb */ color: rgb(82, 44, 126);
/* oklch */ color: oklch(38.6% 0.134 301.8);
Tailwind
colors: {
  custom: {
    50: '#8667a4',
    500: '#522c7e',
    950: '#000000',
  },
}
SCSS
$custom: #522c7e;
$custom-light: #8667a4;
$custom-dark: #000000;
JSON
{
  "hex": "#522c7e",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 267.805,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38599,
    "c": 0.13374,
    "h": 301.8
  },
  "luminance": 0.05102
}

Semantic roles & 50–950 ramp

primary
#522C7E
secondary
#86AD59
accent
#D85099
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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