#521773#521773

#521773 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.149 H 309.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#521773
RGBrgb(82, 23, 115)
HSLhsl(278, 67%, 27%)
HSVhsv(278, 80%, 45%)
CMYKcmyk(28.7%, 80%, 0%, 54.9%)
CIE-LABlab(22.46, 42.60, -40.44)
CIE-LCHlch(22.46, 58.74, 316.49°)
OKLaboklab(35.07% 0.0958 -0.1147)
OKLCHoklch(35.07% 0.149 309.9)
XYZxyz(6.8800, 3.6446, 16.5574)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521773 #387317
analogous
#241773 #521773 #731766
triadic
#521773 #735217 #177352
tetradic
#521773 #732417 #387317 #176673
square
#521773 #732417 #387317 #176673
split-complementary
#521773 #667317 #177324
monochromatic
#12051A #2E0D40 #521773 #7621A6 #9A2FD5

Accessibility & contrast

On white

12.15
#521773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#521773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521773
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521773#FFFFFF#000000##FFFFFF
##5217731.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#4D2D44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521773;
/* rgb */ color: rgb(82, 23, 115);
/* oklch */ color: oklch(35.1% 0.149 309.9);
Tailwind
colors: {
  custom: {
    50: '#875b9c',
    500: '#521773',
    950: '#000000',
  },
}
SCSS
$custom: #521773;
$custom-light: #875b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#521773",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 278.478,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35073,
    "c": 0.14942,
    "h": 309.9
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#521773
secondary
#64A93D
accent
#EA3E7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521773

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

Preview Lab → · Contrast checker → · Palette generator →

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