#521772#521772

#521772 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.148 H 310.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#521772
RGBrgb(82, 23, 114)
HSLhsl(279, 66%, 27%)
HSVhsv(279, 80%, 45%)
CMYKcmyk(28.1%, 79.8%, 0%, 55.3%)
CIE-LABlab(22.38, 42.37, -39.93)
CIE-LCHlch(22.38, 58.22, 316.70°)
OKLaboklab(34.99% 0.096 -0.1132)
OKLCHoklch(34.99% 0.148 310.3)
XYZxyz(6.8227, 3.6217, 16.2560)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521772 #377217
analogous
#251772 #521772 #721765
triadic
#521772 #725217 #177252
tetradic
#521772 #722517 #377217 #176572
square
#521772 #722517 #377217 #176572
split-complementary
#521772 #657217 #177225
monochromatic
#120519 #2D0D3F #521772 #7721A5 #9A2ED5

Accessibility & contrast

On white

12.18
#521772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#521772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521772
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521772#FFFFFF#000000##FFFFFF
##5217721.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#4E2D44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521772;
/* rgb */ color: rgb(82, 23, 114);
/* oklch */ color: oklch(35.0% 0.148 310.3);
Tailwind
colors: {
  custom: {
    50: '#875b9b',
    500: '#521772',
    950: '#000000',
  },
}
SCSS
$custom: #521772;
$custom-light: #875b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#521772",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 278.901,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34991,
    "c": 0.1484,
    "h": 310.3
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#521772
secondary
#63A83D
accent
#E93E7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521772

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

Preview Lab → · Contrast checker → · Palette generator →

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