#522172#522172

#522172 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.136 H 308.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#522172
RGBrgb(82, 33, 114)
HSLhsl(276, 55%, 29%)
HSVhsv(276, 71%, 45%)
CMYKcmyk(28.1%, 71.1%, 0%, 55.3%)
CIE-LABlab(23.99, 37.82, -37.33)
CIE-LCHlch(23.99, 53.14, 315.38°)
OKLaboklab(36.13% 0.0851 -0.1056)
OKLCHoklch(36.13% 0.136 308.9)
XYZxyz(7.0602, 4.0966, 16.3351)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522172 #417221
analogous
#2A2172 #522172 #72216A
triadic
#522172 #725221 #217252
tetradic
#522172 #722A21 #417221 #216A72
square
#522172 #722A21 #417221 #216A72
split-complementary
#522172 #6A7221 #21722A
monochromatic
#110718 #301343 #522172 #742FA1 #9544C9

Accessibility & contrast

On white

11.54
#522172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#522172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522172
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522172#FFFFFF#000000##FFFFFF
##5221721.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#113A70
Tritanopia (blue-blind)
#4D3246
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522172;
/* rgb */ color: rgb(82, 33, 114);
/* oklch */ color: oklch(36.1% 0.136 308.9);
Tailwind
colors: {
  custom: {
    50: '#86609b',
    500: '#522172',
    950: '#000000',
  },
}
SCSS
$custom: #522172;
$custom-light: #86609b;
$custom-dark: #000000;
JSON
{
  "hex": "#522172",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 276.296,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36133,
    "c": 0.13566,
    "h": 308.9
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#522172
secondary
#6EA549
accent
#DE4984
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522172

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

Preview Lab → · Contrast checker → · Palette generator →

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