#521261#521261

#521261 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.137 H 319.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#521261
RGBrgb(82, 18, 97)
HSLhsl(289, 69%, 23%)
HSVhsv(289, 81%, 38%)
CMYKcmyk(15.5%, 81.4%, 0%, 62%)
CIE-LABlab(20.40, 40.55, -32.04)
CIE-LCHlch(20.40, 51.68, 321.69°)
OKLaboklab(33.18% 0.1038 -0.09)
OKLCHoklch(33.18% 0.137 319.1)
XYZxyz(5.8534, 3.0898, 11.5950)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521261 #216112
analogous
#2B1261 #521261 #611248
triadic
#521261 #615212 #126152
tetradic
#521261 #612B12 #216112 #124861
square
#521261 #612B12 #216112 #124861
split-complementary
#521261 #486112 #12612B
monochromatic
#16051A #26082D #521261 #7E1C95 #A925C8

Accessibility & contrast

On white

12.98
#521261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#521261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521261
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521261#FFFFFF#000000##FFFFFF
##5212611.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D63
Deuteranopia (green-blind)
#18335F
Tritanopia (blue-blind)
#522339
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521261;
/* rgb */ color: rgb(82, 18, 97);
/* oklch */ color: oklch(33.2% 0.137 319.1);
Tailwind
colors: {
  custom: {
    50: '#86588e',
    500: '#521261',
    950: '#000000',
  },
}
SCSS
$custom: #521261;
$custom-light: #86588e;
$custom-dark: #000000;
JSON
{
  "hex": "#521261",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 288.608,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3318,
    "c": 0.13736,
    "h": 319.1
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#521261
secondary
#499936
accent
#EC3C5E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #521261

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

Preview Lab → · Contrast checker → · Palette generator →

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