#521671#521671

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

Color values

HEX#521671
RGBrgb(82, 22, 113)
HSLhsl(280, 67%, 26%)
HSVhsv(280, 81%, 44%)
CMYKcmyk(27.4%, 80.5%, 0%, 55.7%)
CIE-LABlab(22.16, 42.54, -39.64)
CIE-LCHlch(22.16, 58.14, 317.02°)
OKLaboklab(34.81% 0.0971 -0.1123)
OKLCHoklch(34.81% 0.149 310.8)
XYZxyz(6.7466, 3.5601, 15.9513)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521671 #357116
analogous
#251671 #521671 #711663
triadic
#521671 #715216 #167152
tetradic
#521671 #712516 #357116 #166371
square
#521671 #712516 #357116 #166371
split-complementary
#521671 #637116 #167125
monochromatic
#13051A #2D0C3E #521671 #7720A4 #9C2CD6

Accessibility & contrast

On white

12.27
#521671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#521671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521671
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521671#FFFFFF#000000##FFFFFF
##5216711.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#01366F
Tritanopia (blue-blind)
#4E2C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521671;
/* rgb */ color: rgb(82, 22, 113);
/* oklch */ color: oklch(34.8% 0.148 310.8);
Tailwind
colors: {
  custom: {
    50: '#865b9a',
    500: '#521671',
    950: '#000000',
  },
}
SCSS
$custom: #521671;
$custom-light: #865b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521671",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 279.56,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34811,
    "c": 0.1485,
    "h": 310.8
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#521671
secondary
#60A73C
accent
#EA3E78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521671

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

Preview Lab → · Contrast checker → · Palette generator →

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