#521475#521475

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

Color values

HEX#521475
RGBrgb(82, 20, 117)
HSLhsl(278, 71%, 27%)
HSVhsv(278, 83%, 46%)
CMYKcmyk(29.9%, 82.9%, 0%, 54.1%)
CIE-LABlab(22.23, 44.22, -42.11)
CIE-LCHlch(22.23, 61.06, 316.40°)
OKLaboklab(34.96% 0.098 -0.1196)
OKLCHoklch(34.96% 0.155 309.3)
XYZxyz(6.9401, 3.5786, 17.1513)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521475 #377514
analogous
#221475 #521475 #751468
triadic
#521475 #755214 #147552
tetradic
#521475 #752214 #377514 #146875
square
#521475 #752214 #377514 #146875
split-complementary
#521475 #687514 #147522
monochromatic
#12041A #2D0B41 #521475 #771DA9 #9A29DA

Accessibility & contrast

On white

12.24
#521475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521475
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521475#FFFFFF#000000##FFFFFF
##5214751.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.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: #521475;
/* rgb */ color: rgb(82, 20, 117);
/* oklch */ color: oklch(35.0% 0.155 309.3);
Tailwind
colors: {
  custom: {
    50: '#875a9d',
    500: '#521475',
    950: '#000000',
  },
}
SCSS
$custom: #521475;
$custom-light: #875a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521475",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 278.351,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34961,
    "c": 0.15458,
    "h": 309.3
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#521475
secondary
#63AB3A
accent
#EE3A7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521475

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

Preview Lab → · Contrast checker → · Palette generator →

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