#521157#521157

#521157 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.129 H 324.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#521157
RGBrgb(82, 17, 87)
HSLhsl(296, 67%, 20%)
HSVhsv(296, 80%, 34%)
CMYKcmyk(5.7%, 80.5%, 0%, 65.9%)
CIE-LABlab(19.57, 38.90, -26.71)
CIE-LCHlch(19.57, 47.19, 325.53°)
OKLaboklab(32.37% 0.1057 -0.0744)
OKLCHoklch(32.37% 0.129 324.9)
XYZxyz(5.4003, 2.8832, 9.2871)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521157 #165711
analogous
#2F1157 #521157 #571139
triadic
#521157 #575211 #115752
tetradic
#521157 #572F11 #165711 #113957
square
#521157 #572F11 #165711 #113957
split-complementary
#521157 #395711 #11572F
monochromatic
#18051A #220724 #521157 #821B8A #B325BD

Accessibility & contrast

On white

13.32
#521157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#521157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521157
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521157#FFFFFF#000000##FFFFFF
##5211571.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#203255
Tritanopia (blue-blind)
#541E33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521157;
/* rgb */ color: rgb(82, 17, 87);
/* oklch */ color: oklch(32.4% 0.129 324.9);
Tailwind
colors: {
  custom: {
    50: '#855787',
    500: '#521157',
    950: '#000000',
  },
}
SCSS
$custom: #521157;
$custom-light: #855787;
$custom-dark: #000000;
JSON
{
  "hex": "#521157",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 295.714,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32366,
    "c": 0.12927,
    "h": 324.9
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#521157
secondary
#3A9034
accent
#EA3E4A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #521157

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

Preview Lab → · Contrast checker → · Palette generator →

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