#521673#521673

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

Color values

HEX#521673
RGBrgb(82, 22, 115)
HSLhsl(279, 68%, 27%)
HSVhsv(279, 81%, 45%)
CMYKcmyk(28.7%, 80.9%, 0%, 54.9%)
CIE-LABlab(22.32, 43.00, -40.66)
CIE-LCHlch(22.32, 59.18, 316.60°)
OKLaboklab(34.98% 0.0967 -0.1154)
OKLCHoklch(34.98% 0.151 310)
XYZxyz(6.8605, 3.6056, 16.5509)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521673 #377316
analogous
#241673 #521673 #731666
triadic
#521673 #735216 #167352
tetradic
#521673 #732416 #377316 #166673
square
#521673 #732416 #377316 #166673
split-complementary
#521673 #667316 #167324
monochromatic
#12051A #2D0C40 #521673 #7720A6 #9A2DD7

Accessibility & contrast

On white

12.20
#521673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521673
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521673#FFFFFF#000000##FFFFFF
##5216731.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#4D2D44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521673;
/* rgb */ color: rgb(82, 22, 115);
/* oklch */ color: oklch(35.0% 0.151 310.0);
Tailwind
colors: {
  custom: {
    50: '#875b9c',
    500: '#521673',
    950: '#000000',
  },
}
SCSS
$custom: #521673;
$custom-light: #875b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#521673",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 278.71,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34976,
    "c": 0.15052,
    "h": 310
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#521673
secondary
#63A93C
accent
#EB3D7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521673

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

Preview Lab → · Contrast checker → · Palette generator →

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