#522672#522672

#522672 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.128 H 307.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#522672
RGBrgb(82, 38, 114)
HSLhsl(275, 50%, 30%)
HSVhsv(275, 67%, 45%)
CMYKcmyk(28.1%, 66.7%, 0%, 55.3%)
CIE-LABlab(24.94, 35.20, -35.80)
CIE-LCHlch(24.94, 50.21, 314.52°)
OKLaboklab(36.82% 0.0789 -0.1012)
OKLCHoklch(36.82% 0.128 307.9)
XYZxyz(7.2094, 4.3951, 16.3849)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522672 #467226
analogous
#2C2672 #522672 #72266C
triadic
#522672 #725226 #267252
tetradic
#522672 #722C26 #467226 #266C72
square
#522672 #722C26 #467226 #266C72
split-complementary
#522672 #6C7226 #26722C
monochromatic
#110817 #311744 #522672 #7335A0 #934EC4

Accessibility & contrast

On white

11.18
#522672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#522672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522672
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522672#FFFFFF#000000##FFFFFF
##5226721.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#183C70
Tritanopia (blue-blind)
#4D3648
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #522672;
/* rgb */ color: rgb(82, 38, 114);
/* oklch */ color: oklch(36.8% 0.128 307.9);
Tailwind
colors: {
  custom: {
    50: '#86639b',
    500: '#522672',
    950: '#000000',
  },
}
SCSS
$custom: #522672;
$custom-light: #86639b;
$custom-dark: #000000;
JSON
{
  "hex": "#522672",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 274.737,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36816,
    "c": 0.12829,
    "h": 307.9
  },
  "luminance": 0.04395
}

Semantic roles & 50–950 ramp

primary
#522672
secondary
#73A54F
accent
#DA4E89
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #522672

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

Preview Lab → · Contrast checker → · Palette generator →

#522672 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva