#522C83#522C83

#522C83 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.140 H 300.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#522C83
RGBrgb(82, 44, 131)
HSLhsl(266, 50%, 34%)
HSVhsv(266, 66%, 51%)
CMYKcmyk(37.4%, 66.4%, 0%, 48.6%)
CIE-LABlab(27.39, 36.36, -42.60)
CIE-LCHlch(27.39, 56.01, 310.48°)
OKLaboklab(38.98% 0.07 -0.1212)
OKLCHoklch(38.98% 0.14 300)
XYZxyz(8.4761, 5.2338, 22.0320)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C83 #5D832C
analogous
#2C3283 #522C83 #7E2C83
triadic
#522C83 #83522C #2C8352
tetradic
#522C83 #832C32 #5D832C #2C837E
square
#522C83 #832C32 #5D832C #2C837E
split-complementary
#522C83 #837E2C #32832C
monochromatic
#190D27 #351D55 #522C83 #6F3BB1 #8E60CA

Accessibility & contrast

On white

10.26
#522C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C83
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C83#FFFFFF#000000##FFFFFF
##522C831.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004086
Deuteranopia (green-blind)
#034081
Tritanopia (blue-blind)
#473F53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522c83;
/* rgb */ color: rgb(82, 44, 131);
/* oklch */ color: oklch(39.0% 0.140 300.0);
Tailwind
colors: {
  custom: {
    50: '#8768a8',
    500: '#522c83',
    950: '#000000',
  },
}
SCSS
$custom: #522c83;
$custom-light: #8768a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522c83",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 266.207,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38983,
    "c": 0.13995,
    "h": 300
  },
  "luminance": 0.05234
}

Semantic roles & 50–950 ramp

primary
#522C83
secondary
#8BB05B
accent
#D94F9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C83

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

Preview Lab → · Contrast checker → · Palette generator →

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