#522C7D#522C7D

#522C7D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.132 H 302.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#522C7D
RGBrgb(82, 44, 125)
HSLhsl(268, 48%, 33%)
HSVhsv(268, 65%, 49%)
CMYKcmyk(34.4%, 64.8%, 0%, 51%)
CIE-LABlab(26.95, 34.73, -39.55)
CIE-LCHlch(26.95, 52.63, 311.29°)
OKLaboklab(38.52% 0.0705 -0.1122)
OKLCHoklch(38.52% 0.132 302.1)
XYZxyz(8.0812, 5.0759, 19.9521)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C7D #577D2C
analogous
#2C2E7D #522C7D #7A2C7D
triadic
#522C7D #7D522C #2C7D52
tetradic
#522C7D #7D2C2E #577D2C #2C7D7A
square
#522C7D #7D2C2E #577D2C #2C7D7A
split-complementary
#522C7D #7D7A2C #2E7D2C
monochromatic
#170C22 #341C50 #522C7D #703CAA #8E5DC6

Accessibility & contrast

On white

10.42
#522C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522C7D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C7D#FFFFFF#000000##FFFFFF
##522C7D1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#123F7B
Tritanopia (blue-blind)
#493D50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522c7d;
/* rgb */ color: rgb(82, 44, 125);
/* oklch */ color: oklch(38.5% 0.132 302.1);
Tailwind
colors: {
  custom: {
    50: '#8667a3',
    500: '#522c7d',
    950: '#000000',
  },
}
SCSS
$custom: #522c7d;
$custom-light: #8667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#522c7d",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 268.148,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38523,
    "c": 0.13249,
    "h": 302.1
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#522C7D
secondary
#85AC59
accent
#D85098
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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