#521765#521765

#521765 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.135 H 316.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#521765
RGBrgb(82, 23, 101)
HSLhsl(285, 63%, 24%)
HSVhsv(285, 77%, 40%)
CMYKcmyk(18.8%, 77.2%, 0%, 60.4%)
CIE-LABlab(21.38, 39.44, -33.09)
CIE-LCHlch(21.38, 51.48, 320.00°)
OKLaboklab(33.97% 0.0982 -0.0931)
OKLCHoklch(33.97% 0.135 316.5)
XYZxyz(6.1347, 3.3465, 12.6322)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521765 #2A6517
analogous
#2B1765 #521765 #651751
triadic
#521765 #655217 #176552
tetradic
#521765 #652B17 #2A6517 #175165
square
#521765 #652B17 #2A6517 #175165
split-complementary
#521765 #516517 #17652B
monochromatic
#140619 #2A0C33 #521765 #7A2297 #A32EC9

Accessibility & contrast

On white

12.58
#521765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#521765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521765
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521765#FFFFFF#000000##FFFFFF
##5217651.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#173563
Tritanopia (blue-blind)
#51273C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521765;
/* rgb */ color: rgb(82, 23, 101);
/* oklch */ color: oklch(34.0% 0.135 316.5);
Tailwind
colors: {
  custom: {
    50: '#865b91',
    500: '#521765',
    950: '#000000',
  },
}
SCSS
$custom: #521765;
$custom-light: #865b91;
$custom-dark: #000000;
JSON
{
  "hex": "#521765",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 285.385,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33969,
    "c": 0.1353,
    "h": 316.5
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#521765
secondary
#549B3C
accent
#E6426A
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521765

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

Preview Lab → · Contrast checker → · Palette generator →

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