#521255#521255

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

Color values

HEX#521255
RGBrgb(82, 18, 85)
HSLhsl(297, 65%, 20%)
HSVhsv(297, 79%, 33%)
CMYKcmyk(3.5%, 78.8%, 0%, 66.7%)
CIE-LABlab(19.57, 38.14, -25.37)
CIE-LCHlch(19.57, 45.81, 326.37°)
OKLaboklab(32.32% 0.1048 -0.0705)
OKLCHoklch(32.32% 0.126 326.1)
XYZxyz(5.3356, 2.8827, 8.8680)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521255 #155512
analogous
#301255 #521255 #551237
triadic
#521255 #555212 #125552
tetradic
#521255 #553012 #155512 #123755
square
#521255 #553012 #155512 #123755
split-complementary
#521255 #375512 #125530
monochromatic
#180519 #210722 #521255 #831D88 #B327BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##521255#FFFFFF#000000##FFFFFF
##5212551.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)
#022A57
Deuteranopia (green-blind)
#213253
Tritanopia (blue-blind)
#541D32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521255;
/* rgb */ color: rgb(82, 18, 85);
/* oklch */ color: oklch(32.3% 0.126 326.1);
Tailwind
colors: {
  custom: {
    50: '#855885',
    500: '#521255',
    950: '#000000',
  },
}
SCSS
$custom: #521255;
$custom-light: #855885;
$custom-dark: #000000;
JSON
{
  "hex": "#521255",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 297.313,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32322,
    "c": 0.12628,
    "h": 326.1
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#521255
secondary
#398E35
accent
#E84047
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521255

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

Preview Lab → · Contrast checker → · Palette generator →

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