#522C8C#522C8C

#522C8C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.151 H 297.2°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#522C8C
RGBrgb(82, 44, 140)
HSLhsl(264, 52%, 36%)
HSVhsv(264, 69%, 55%)
CMYKcmyk(41.4%, 68.6%, 0%, 45.1%)
CIE-LABlab(28.08, 38.83, -47.09)
CIE-LCHlch(28.08, 61.03, 309.51°)
OKLaboklab(39.7% 0.0689 -0.1344)
OKLCHoklch(39.7% 0.151 297.2)
XYZxyz(9.1128, 5.4885, 25.3851)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C8C #668C2C
analogous
#2C368C #522C8C #822C8C
triadic
#522C8C #8C522C #2C8C52
tetradic
#522C8C #8C2C36 #668C2C #2C8C82
square
#522C8C #8C2C36 #668C2C #2C8C82
split-complementary
#522C8C #8C822C #368C2C
monochromatic
#1B0F2F #371D5D #522C8C #6D3BBB #8E64CE

Accessibility & contrast

On white

10.01
#522C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C8C
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C8C#FFFFFF#000000##FFFFFF
##522C8C1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#444358
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522c8c;
/* rgb */ color: rgb(82, 44, 140);
/* oklch */ color: oklch(39.7% 0.151 297.2);
Tailwind
colors: {
  custom: {
    50: '#8868ae',
    500: '#522c8c',
    950: '#000000',
  },
}
SCSS
$custom: #522c8c;
$custom-light: #8868ae;
$custom-dark: #000000;
JSON
{
  "hex": "#522c8c",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 263.75,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.397,
    "c": 0.15102,
    "h": 297.2
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#522C8C
secondary
#93B55F
accent
#DC4CA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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