#521476#521476

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

Color values

HEX#521476
RGBrgb(82, 20, 118)
HSLhsl(278, 71%, 27%)
HSVhsv(278, 83%, 46%)
CMYKcmyk(30.5%, 83.1%, 0%, 53.7%)
CIE-LABlab(22.31, 44.44, -42.61)
CIE-LCHlch(22.31, 61.57, 316.21°)
OKLaboklab(35.05% 0.0977 -0.1211)
OKLCHoklch(35.05% 0.156 308.9)
XYZxyz(6.9992, 3.6023, 17.4626)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521476 #387614
analogous
#211476 #521476 #761469
triadic
#521476 #765214 #147652
tetradic
#521476 #762114 #387614 #146976
square
#521476 #762114 #387614 #146976
split-complementary
#521476 #697614 #147621
monochromatic
#12041A #2E0B42 #521476 #761DAA #9A2ADB

Accessibility & contrast

On white

12.21
#521476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521476
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521476#FFFFFF#000000##FFFFFF
##5214761.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4C2D45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521476;
/* rgb */ color: rgb(82, 20, 118);
/* oklch */ color: oklch(35.0% 0.156 308.9);
Tailwind
colors: {
  custom: {
    50: '#875a9e',
    500: '#521476',
    950: '#000000',
  },
}
SCSS
$custom: #521476;
$custom-light: #875a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#521476",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 277.959,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35046,
    "c": 0.15557,
    "h": 308.9
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#521476
secondary
#64AC3A
accent
#EE3A7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521476

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

Preview Lab → · Contrast checker → · Palette generator →

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