#521677#521677

#521677 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.155 H 308.3°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#521677
RGBrgb(82, 22, 119)
HSLhsl(277, 69%, 28%)
HSVhsv(277, 82%, 47%)
CMYKcmyk(31.1%, 81.5%, 0%, 53.3%)
CIE-LABlab(22.65, 43.93, -42.69)
CIE-LCHlch(22.65, 61.26, 315.82°)
OKLaboklab(35.31% 0.0957 -0.1213)
OKLCHoklch(35.31% 0.155 308.3)
XYZxyz(7.0957, 3.6997, 17.7895)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521677 #3B7716
analogous
#211677 #521677 #77166C
triadic
#521677 #775216 #167752
tetradic
#521677 #772116 #3B7716 #166C77
square
#521677 #772116 #3B7716 #166C77
split-complementary
#521677 #6C7716 #167721
monochromatic
#12051A #2E0C43 #521677 #7620AB #982FD9

Accessibility & contrast

On white

12.07
#521677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521677
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521677#FFFFFF#000000##FFFFFF
##5216771.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#4C2F46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521677;
/* rgb */ color: rgb(82, 22, 119);
/* oklch */ color: oklch(35.3% 0.155 308.3);
Tailwind
colors: {
  custom: {
    50: '#875b9f',
    500: '#521677',
    950: '#000000',
  },
}
SCSS
$custom: #521677;
$custom-light: #875b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#521677",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 277.113,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35311,
    "c": 0.15453,
    "h": 308.3
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#521677
secondary
#67AC3C
accent
#EC3C7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521677

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

Preview Lab → · Contrast checker → · Palette generator →

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