#521767#521767

#521767 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.137 H 315.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#521767
RGBrgb(82, 23, 103)
HSLhsl(284, 63%, 25%)
HSVhsv(284, 78%, 40%)
CMYKcmyk(20.4%, 77.7%, 0%, 59.6%)
CIE-LABlab(21.53, 39.88, -34.17)
CIE-LCHlch(21.53, 52.52, 319.41°)
OKLaboklab(34.12% 0.0979 -0.0963)
OKLCHoklch(34.12% 0.137 315.5)
XYZxyz(6.2339, 3.3861, 13.1545)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521767 #2C6717
analogous
#2A1767 #521767 #671754
triadic
#521767 #675217 #176752
tetradic
#521767 #672A17 #2C6717 #175467
square
#521767 #672A17 #2C6717 #175467
split-complementary
#521767 #546717 #17672A
monochromatic
#140619 #2A0C35 #521767 #7A2299 #A22DCB

Accessibility & contrast

On white

12.52
#521767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#521767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521767
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521767#FFFFFF#000000##FFFFFF
##5217671.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#153565
Tritanopia (blue-blind)
#50283E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521767;
/* rgb */ color: rgb(82, 23, 103);
/* oklch */ color: oklch(34.1% 0.137 315.5);
Tailwind
colors: {
  custom: {
    50: '#865b93',
    500: '#521767',
    950: '#000000',
  },
}
SCSS
$custom: #521767;
$custom-light: #865b93;
$custom-dark: #000000;
JSON
{
  "hex": "#521767",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 284.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3412,
    "c": 0.1373,
    "h": 315.5
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#521767
secondary
#569D3D
accent
#E7416D
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521767

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

Preview Lab → · Contrast checker → · Palette generator →

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