#521672#521672

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

Color values

HEX#521672
RGBrgb(82, 22, 114)
HSLhsl(279, 68%, 27%)
HSVhsv(279, 81%, 45%)
CMYKcmyk(28.1%, 80.7%, 0%, 55.3%)
CIE-LABlab(22.24, 42.77, -40.15)
CIE-LCHlch(22.24, 58.66, 316.81°)
OKLaboklab(34.89% 0.0969 -0.1138)
OKLCHoklch(34.89% 0.15 310.4)
XYZxyz(6.8033, 3.5827, 16.2495)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521672 #367216
analogous
#241672 #521672 #721664
triadic
#521672 #725216 #167252
tetradic
#521672 #722416 #367216 #166472
square
#521672 #722416 #367216 #166472
split-complementary
#521672 #647216 #167224
monochromatic
#12051A #2D0C3F #521672 #7720A5 #9B2CD6

Accessibility & contrast

On white

12.23
#521672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521672
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521672#FFFFFF#000000##FFFFFF
##5216721.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521672;
/* rgb */ color: rgb(82, 22, 114);
/* oklch */ color: oklch(34.9% 0.149 310.4);
Tailwind
colors: {
  custom: {
    50: '#875b9b',
    500: '#521672',
    950: '#000000',
  },
}
SCSS
$custom: #521672;
$custom-light: #875b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#521672",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 279.13,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.1495,
    "h": 310.4
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#521672
secondary
#61A83C
accent
#EB3D7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521672

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

Preview Lab → · Contrast checker → · Palette generator →

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