#521575#521575

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

Color values

HEX#521575
RGBrgb(82, 21, 117)
HSLhsl(278, 70%, 27%)
HSVhsv(278, 82%, 46%)
CMYKcmyk(29.9%, 82.1%, 0%, 54.1%)
CIE-LABlab(22.35, 43.84, -41.90)
CIE-LCHlch(22.35, 60.64, 316.30°)
OKLaboklab(35.05% 0.0971 -0.119)
OKLCHoklch(35.05% 0.154 309.2)
XYZxyz(6.9581, 3.6147, 17.1573)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521575 #387515
analogous
#221575 #521575 #751568
triadic
#521575 #755215 #157552
tetradic
#521575 #752215 #387515 #156875
square
#521575 #752215 #387515 #156875
split-complementary
#521575 #687515 #157522
monochromatic
#12051A #2E0C41 #521575 #761EA9 #9A2BD9

Accessibility & contrast

On white

12.19
#521575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521575
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521575#FFFFFF#000000##FFFFFF
##5215751.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521575;
/* rgb */ color: rgb(82, 21, 117);
/* oklch */ color: oklch(35.0% 0.154 309.2);
Tailwind
colors: {
  custom: {
    50: '#875b9d',
    500: '#521575',
    950: '#000000',
  },
}
SCSS
$custom: #521575;
$custom-light: #875b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521575",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 278.125,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3505,
    "c": 0.15357,
    "h": 309.2
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#521575
secondary
#64AB3B
accent
#EC3B7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521575

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

Preview Lab → · Contrast checker → · Palette generator →

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