#521165#521165

#521165 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.4% C 0.142 H 317.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#521165
RGBrgb(82, 17, 101)
HSLhsl(286, 71%, 23%)
HSVhsv(286, 83%, 40%)
CMYKcmyk(18.8%, 83.2%, 0%, 60.4%)
CIE-LABlab(20.58, 41.75, -34.39)
CIE-LCHlch(20.58, 54.09, 320.52°)
OKLaboklab(33.4% 0.1041 -0.0969)
OKLCHoklch(33.4% 0.142 317)
XYZxyz(6.0287, 3.1346, 12.5969)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521165 #246511
analogous
#281165 #521165 #65114E
triadic
#521165 #655211 #116552
tetradic
#521165 #652811 #246511 #114E65
square
#521165 #652811 #246511 #114E65
split-complementary
#521165 #4E6511 #116528
monochromatic
#15041A #270831 #521165 #7D1A99 #A723CE

Accessibility & contrast

On white

12.91
#521165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#521165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521165
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521165#FFFFFF#000000##FFFFFF
##5211651.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E67
Deuteranopia (green-blind)
#123363
Tritanopia (blue-blind)
#51243B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521165;
/* rgb */ color: rgb(82, 17, 101);
/* oklch */ color: oklch(33.4% 0.142 317.0);
Tailwind
colors: {
  custom: {
    50: '#865891',
    500: '#521165',
    950: '#000000',
  },
}
SCSS
$custom: #521165;
$custom-light: #865891;
$custom-dark: #000000;
JSON
{
  "hex": "#521165",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 286.429,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33398,
    "c": 0.1422,
    "h": 317
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#521165
secondary
#4C9D35
accent
#EE3A63
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521165

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

Preview Lab → · Contrast checker → · Palette generator →

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