#521976#521976

#521976 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.150 H 308.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#521976
RGBrgb(82, 25, 118)
HSLhsl(277, 65%, 28%)
HSVhsv(277, 79%, 46%)
CMYKcmyk(30.5%, 78.8%, 0%, 53.7%)
CIE-LABlab(22.99, 42.49, -41.51)
CIE-LCHlch(22.99, 59.40, 315.67°)
OKLaboklab(35.52% 0.0932 -0.1178)
OKLCHoklch(35.52% 0.15 308.3)
XYZxyz(7.0966, 3.7972, 17.4951)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521976 #3D7619
analogous
#231976 #521976 #76196B
triadic
#521976 #765219 #197652
tetradic
#521976 #762319 #3D7619 #196B76
square
#521976 #762319 #3D7619 #196B76
split-complementary
#521976 #6B7619 #197623
monochromatic
#120519 #2F0E43 #521976 #7524A8 #9735D4

Accessibility & contrast

On white

11.94
#521976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#521976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521976
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521976#FFFFFF#000000##FFFFFF
##5219761.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#4C3047
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521976;
/* rgb */ color: rgb(82, 25, 118);
/* oklch */ color: oklch(35.5% 0.150 308.3);
Tailwind
colors: {
  custom: {
    50: '#875c9e',
    500: '#521976',
    950: '#000000',
  },
}
SCSS
$custom: #521976;
$custom-light: #875c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#521976",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 276.774,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35522,
    "c": 0.15023,
    "h": 308.3
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#521976
secondary
#69AB40
accent
#E84081
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521976

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

Preview Lab → · Contrast checker → · Palette generator →

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