#522173#522173

#522173 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.137 H 308.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#522173
RGBrgb(82, 33, 115)
HSLhsl(276, 55%, 29%)
HSVhsv(276, 71%, 45%)
CMYKcmyk(28.7%, 71.3%, 0%, 54.9%)
CIE-LABlab(24.06, 38.06, -37.85)
CIE-LCHlch(24.06, 53.68, 315.16°)
OKLaboklab(36.21% 0.085 -0.1072)
OKLCHoklch(36.21% 0.137 308.4)
XYZxyz(7.1174, 4.1195, 16.6365)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522173 #427321
analogous
#292173 #522173 #73216B
triadic
#522173 #735221 #217352
tetradic
#522173 #732921 #427321 #216B73
square
#522173 #732921 #427321 #216B73
split-complementary
#522173 #6B7321 #217329
monochromatic
#110718 #301343 #522173 #742FA3 #9445CA

Accessibility & contrast

On white

11.51
#522173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522173
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522173#FFFFFF#000000##FFFFFF
##5221731.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#103A71
Tritanopia (blue-blind)
#4D3347
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522173;
/* rgb */ color: rgb(82, 33, 115);
/* oklch */ color: oklch(36.2% 0.137 308.4);
Tailwind
colors: {
  custom: {
    50: '#86609c',
    500: '#522173',
    950: '#000000',
  },
}
SCSS
$custom: #522173;
$custom-light: #86609c;
$custom-dark: #000000;
JSON
{
  "hex": "#522173",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 275.854,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3621,
    "c": 0.13679,
    "h": 308.4
  },
  "luminance": 0.04119
}

Semantic roles & 50–950 ramp

primary
#522173
secondary
#6FA649
accent
#DF4985
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522173

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

Preview Lab → · Contrast checker → · Palette generator →

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