#521173#521173

#521173 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.155 H 310.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#521173
RGBrgb(82, 17, 115)
HSLhsl(280, 74%, 26%)
HSVhsv(280, 85%, 45%)
CMYKcmyk(28.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(21.70, 44.80, -41.68)
CIE-LCHlch(21.70, 61.19, 317.07°)
OKLaboklab(34.54% 0.1009 -0.1183)
OKLCHoklch(34.54% 0.156 310.5)
XYZxyz(6.7740, 3.4327, 16.5221)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521173 #327311
analogous
#211173 #521173 #731163
triadic
#521173 #735211 #117352
tetradic
#521173 #732111 #327311 #116373
square
#521173 #732111 #327311 #116373
split-complementary
#521173 #637311 #117321
monochromatic
#13041B #2C093E #521173 #7819A8 #9E21DE

Accessibility & contrast

On white

12.45
#521173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521173
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521173#FFFFFF#000000##FFFFFF
##5211731.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#4D2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521173;
/* rgb */ color: rgb(82, 17, 115);
/* oklch */ color: oklch(34.5% 0.155 310.5);
Tailwind
colors: {
  custom: {
    50: '#87599c',
    500: '#521173',
    950: '#000000',
  },
}
SCSS
$custom: #521173;
$custom-light: #87599c;
$custom-dark: #000000;
JSON
{
  "hex": "#521173",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 279.796,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3454,
    "c": 0.1555,
    "h": 310.5
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#521173
secondary
#5DAA36
accent
#F13776
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521173

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

Preview Lab → · Contrast checker → · Palette generator →

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