#521377#521377

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

Color values

HEX#521377
RGBrgb(82, 19, 119)
HSLhsl(278, 72%, 27%)
HSVhsv(278, 84%, 47%)
CMYKcmyk(31.1%, 84%, 0%, 53.3%)
CIE-LABlab(22.27, 45.03, -43.31)
CIE-LCHlch(22.27, 62.48, 316.11°)
OKLaboklab(35.05% 0.0983 -0.1231)
OKLCHoklch(35.05% 0.158 308.6)
XYZxyz(7.0416, 3.5916, 17.7715)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521377 #387713
analogous
#201377 #521377 #77136A
triadic
#521377 #775213 #137752
tetradic
#521377 #772013 #387713 #136A77
square
#521377 #772013 #387713 #136A77
split-complementary
#521377 #6A7713 #137720
monochromatic
#12041A #2E0B42 #521377 #761BAC #9A28DD

Accessibility & contrast

On white

12.22
#521377 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521377
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521377#FFFFFF#000000##FFFFFF
##5213771.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#4C2D46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521377;
/* rgb */ color: rgb(82, 19, 119);
/* oklch */ color: oklch(35.0% 0.158 308.6);
Tailwind
colors: {
  custom: {
    50: '#875a9f',
    500: '#521377',
    950: '#000000',
  },
}
SCSS
$custom: #521377;
$custom-light: #875a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#521377",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 119
  },
  "hsl": {
    "h": 277.8,
    "s": 72.464,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35046,
    "c": 0.15752,
    "h": 308.6
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#521377
secondary
#64AD39
accent
#EF397C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521377

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

Preview Lab → · Contrast checker → · Palette generator →

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