#521771#521771

#521771 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.147 H 310.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#521771
RGBrgb(82, 23, 113)
HSLhsl(279, 66%, 27%)
HSVhsv(279, 80%, 44%)
CMYKcmyk(27.4%, 79.6%, 0%, 55.7%)
CIE-LABlab(22.30, 42.14, -39.41)
CIE-LCHlch(22.30, 57.70, 316.91°)
OKLaboklab(34.91% 0.0962 -0.1117)
OKLCHoklch(34.91% 0.147 310.7)
XYZxyz(6.7661, 3.5990, 15.9578)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521771 #367117
analogous
#251771 #521771 #711763
triadic
#521771 #715217 #177152
tetradic
#521771 #712517 #367117 #176371
square
#521771 #712517 #367117 #176371
split-complementary
#521771 #637117 #177125
monochromatic
#120519 #2D0D3E #521771 #7721A4 #9B2ED4

Accessibility & contrast

On white

12.21
#521771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521771
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521771#FFFFFF#000000##FFFFFF
##5217711.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#02366F
Tritanopia (blue-blind)
#4E2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521771;
/* rgb */ color: rgb(82, 23, 113);
/* oklch */ color: oklch(34.9% 0.147 310.7);
Tailwind
colors: {
  custom: {
    50: '#865b9a',
    500: '#521771',
    950: '#000000',
  },
}
SCSS
$custom: #521771;
$custom-light: #865b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521771",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 279.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34909,
    "c": 0.14739,
    "h": 310.7
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#521771
secondary
#61A73D
accent
#E93F79
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521771

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

Preview Lab → · Contrast checker → · Palette generator →

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