#521676#521676

#521676 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.154 H 308.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#521676
RGBrgb(82, 22, 118)
HSLhsl(278, 69%, 27%)
HSVhsv(278, 81%, 46%)
CMYKcmyk(30.5%, 81.4%, 0%, 53.7%)
CIE-LABlab(22.57, 43.69, -42.19)
CIE-LCHlch(22.57, 60.74, 316.00°)
OKLaboklab(35.23% 0.096 -0.1198)
OKLCHoklch(35.23% 0.154 308.7)
XYZxyz(7.0359, 3.6758, 17.4749)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521676 #3A7616
analogous
#221676 #521676 #76166A
triadic
#521676 #765216 #167652
tetradic
#521676 #762216 #3A7616 #166A76
square
#521676 #762216 #3A7616 #166A76
split-complementary
#521676 #6A7616 #167622
monochromatic
#12051A #2E0C42 #521676 #7620AA #982ED8

Accessibility & contrast

On white

12.10
#521676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#521676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521676
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521676#FFFFFF#000000##FFFFFF
##5216761.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#4C2E46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521676;
/* rgb */ color: rgb(82, 22, 118);
/* oklch */ color: oklch(35.2% 0.154 308.7);
Tailwind
colors: {
  custom: {
    50: '#875b9e',
    500: '#521676',
    950: '#000000',
  },
}
SCSS
$custom: #521676;
$custom-light: #875b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#521676",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 277.5,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35227,
    "c": 0.15353,
    "h": 308.7
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#521676
secondary
#66AC3C
accent
#EB3C7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521676

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

Preview Lab → · Contrast checker → · Palette generator →

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