#521574#521574

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

Color values

HEX#521574
RGBrgb(82, 21, 116)
HSLhsl(279, 69%, 27%)
HSVhsv(279, 82%, 45%)
CMYKcmyk(29.3%, 81.9%, 0%, 54.5%)
CIE-LABlab(22.27, 43.61, -41.39)
CIE-LCHlch(22.27, 60.13, 316.50°)
OKLaboklab(34.97% 0.0974 -0.1175)
OKLCHoklch(34.97% 0.153 309.6)
XYZxyz(6.8996, 3.5913, 16.8493)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521574 #377415
analogous
#221574 #521574 #741567
triadic
#521574 #745215 #157452
tetradic
#521574 #742215 #377415 #156774
square
#521574 #742215 #377415 #156774
split-complementary
#521574 #677415 #157422
monochromatic
#12051A #2D0C40 #521574 #771EA8 #9A2BD9

Accessibility & contrast

On white

12.22
#521574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521574
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521574#FFFFFF#000000##FFFFFF
##5215741.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4D2D45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521574;
/* rgb */ color: rgb(82, 21, 116);
/* oklch */ color: oklch(35.0% 0.153 309.6);
Tailwind
colors: {
  custom: {
    50: '#875b9d',
    500: '#521574',
    950: '#000000',
  },
}
SCSS
$custom: #521574;
$custom-light: #875b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521574",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 278.526,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34966,
    "c": 0.15257,
    "h": 309.6
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#521574
secondary
#63AA3B
accent
#EC3C7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521574

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

Preview Lab → · Contrast checker → · Palette generator →

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