#522C82#522C82

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

Color values

HEX#522C82
RGBrgb(82, 44, 130)
HSLhsl(267, 49%, 34%)
HSVhsv(267, 66%, 51%)
CMYKcmyk(36.9%, 66.2%, 0%, 49%)
CIE-LABlab(27.32, 36.08, -42.10)
CIE-LCHlch(27.32, 55.45, 310.60°)
OKLaboklab(38.91% 0.0701 -0.1197)
OKLCHoklch(38.91% 0.139 300.3)
XYZxyz(8.4086, 5.2068, 21.6768)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C82 #5C822C
analogous
#2C3182 #522C82 #7D2C82
triadic
#522C82 #82522C #2C8252
tetradic
#522C82 #822C31 #5C822C #2C827D
square
#522C82 #822C31 #5C822C #2C827D
split-complementary
#522C82 #827D2C #31822C
monochromatic
#180D27 #351D54 #522C82 #6F3BB0 #8E5FC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522C82#FFFFFF#000000##FFFFFF
##522C821.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)
#004085
Deuteranopia (green-blind)
#064080
Tritanopia (blue-blind)
#483F53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522c82;
/* rgb */ color: rgb(82, 44, 130);
/* oklch */ color: oklch(38.9% 0.139 300.3);
Tailwind
colors: {
  custom: {
    50: '#8767a7',
    500: '#522c82',
    950: '#000000',
  },
}
SCSS
$custom: #522c82;
$custom-light: #8767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522c82",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 266.512,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38905,
    "c": 0.13871,
    "h": 300.3
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#522C82
secondary
#8AAF5B
accent
#D94F9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522C82

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

Preview Lab → · Contrast checker → · Palette generator →

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