#521867#521867

#521867 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.136 H 315.4°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#521867
RGBrgb(82, 24, 103)
HSLhsl(284, 62%, 25%)
HSVhsv(284, 77%, 40%)
CMYKcmyk(20.4%, 76.7%, 0%, 59.6%)
CIE-LABlab(21.68, 39.46, -33.93)
CIE-LCHlch(21.68, 52.04, 319.31°)
OKLaboklab(34.23% 0.0968 -0.0956)
OKLCHoklch(34.23% 0.136 315.4)
XYZxyz(6.2541, 3.4266, 13.1613)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521867 #2D6718
analogous
#2B1867 #521867 #671854
triadic
#521867 #675218 #186752
tetradic
#521867 #672B18 #2D6718 #185467
square
#521867 #672B18 #2D6718 #185467
split-complementary
#521867 #546718 #18672B
monochromatic
#140619 #2A0C35 #521867 #7A2499 #A12FCA

Accessibility & contrast

On white

12.46
#521867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521867
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521867#FFFFFF#000000##FFFFFF
##5218671.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#163565
Tritanopia (blue-blind)
#50293E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521867;
/* rgb */ color: rgb(82, 24, 103);
/* oklch */ color: oklch(34.2% 0.136 315.4);
Tailwind
colors: {
  custom: {
    50: '#865b93',
    500: '#521867',
    950: '#000000',
  },
}
SCSS
$custom: #521867;
$custom-light: #865b93;
$custom-dark: #000000;
JSON
{
  "hex": "#521867",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 284.051,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34226,
    "c": 0.13605,
    "h": 315.4
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#521867
secondary
#579D3E
accent
#E5436E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521867

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

Preview Lab → · Contrast checker → · Palette generator →

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