#521155#521155

#521155 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.127 H 326.1°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#521155
RGBrgb(82, 17, 85)
HSLhsl(297, 67%, 20%)
HSVhsv(297, 80%, 33%)
CMYKcmyk(3.5%, 80%, 0%, 66.7%)
CIE-LABlab(19.44, 38.51, -25.58)
CIE-LCHlch(19.44, 46.23, 326.41°)
OKLaboklab(32.23% 0.1058 -0.0711)
OKLCHoklch(32.23% 0.127 326.1)
XYZxyz(5.3197, 2.8510, 8.8627)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521155 #145511
analogous
#301155 #521155 #551136
triadic
#521155 #555211 #115552
tetradic
#521155 #553011 #145511 #113655
square
#521155 #553011 #145511 #113655
split-complementary
#521155 #365511 #115530
monochromatic
#19051A #210722 #521155 #831B88 #B425BB

Accessibility & contrast

On white

13.37
#521155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#521155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521155
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521155#FFFFFF#000000##FFFFFF
##5211551.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#213253
Tritanopia (blue-blind)
#541D32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521155;
/* rgb */ color: rgb(82, 17, 85);
/* oklch */ color: oklch(32.2% 0.127 326.1);
Tailwind
colors: {
  custom: {
    50: '#855785',
    500: '#521155',
    950: '#000000',
  },
}
SCSS
$custom: #521155;
$custom-light: #855785;
$custom-dark: #000000;
JSON
{
  "hex": "#521155",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 297.353,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.32228,
    "c": 0.12748,
    "h": 326.1
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#521155
secondary
#388E34
accent
#EA3E46
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #521155

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

Preview Lab → · Contrast checker → · Palette generator →

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