#521376#521376

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

Color values

HEX#521376
RGBrgb(82, 19, 118)
HSLhsl(278, 72%, 27%)
HSVhsv(278, 84%, 46%)
CMYKcmyk(30.5%, 83.9%, 0%, 53.7%)
CIE-LABlab(22.19, 44.80, -42.81)
CIE-LCHlch(22.19, 61.97, 316.30°)
OKLaboklab(34.96% 0.0985 -0.1216)
OKLCHoklch(34.96% 0.157 309)
XYZxyz(6.9819, 3.5677, 17.4569)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521376 #377613
analogous
#211376 #521376 #761369
triadic
#521376 #765213 #137652
tetradic
#521376 #762113 #377613 #136976
square
#521376 #762113 #377613 #136976
split-complementary
#521376 #697613 #137621
monochromatic
#12041A #2D0B41 #521376 #771BAB #9A27DC

Accessibility & contrast

On white

12.25
#521376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#521376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521376
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521376#FFFFFF#000000##FFFFFF
##5213761.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.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: #521376;
/* rgb */ color: rgb(82, 19, 118);
/* oklch */ color: oklch(35.0% 0.157 309.0);
Tailwind
colors: {
  custom: {
    50: '#875a9e',
    500: '#521376',
    950: '#000000',
  },
}
SCSS
$custom: #521376;
$custom-light: #875a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#521376",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 278.182,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3496,
    "c": 0.15654,
    "h": 309
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#521376
secondary
#63AC39
accent
#EF397B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521376

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

Preview Lab → · Contrast checker → · Palette generator →

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