#521865#521865

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

Color values

HEX#521865
RGBrgb(82, 24, 101)
HSLhsl(285, 62%, 25%)
HSVhsv(285, 76%, 40%)
CMYKcmyk(18.8%, 76.2%, 0%, 60.4%)
CIE-LABlab(21.53, 39.01, -32.85)
CIE-LCHlch(21.53, 51.00, 319.90°)
OKLaboklab(34.08% 0.0971 -0.0924)
OKLCHoklch(34.08% 0.134 316.4)
XYZxyz(6.1549, 3.3869, 12.6389)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521865 #2B6518
analogous
#2C1865 #521865 #651852
triadic
#521865 #655218 #186552
tetradic
#521865 #652C18 #2B6518 #185265
square
#521865 #652C18 #2B6518 #185265
split-complementary
#521865 #526518 #18652C
monochromatic
#140619 #2A0C34 #521865 #7A2496 #A230C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##521865#FFFFFF#000000##FFFFFF
##5218651.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)
#003067
Deuteranopia (green-blind)
#183563
Tritanopia (blue-blind)
#51283D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521865;
/* rgb */ color: rgb(82, 24, 101);
/* oklch */ color: oklch(34.1% 0.134 316.4);
Tailwind
colors: {
  custom: {
    50: '#865b91',
    500: '#521865',
    950: '#000000',
  },
}
SCSS
$custom: #521865;
$custom-light: #865b91;
$custom-dark: #000000;
JSON
{
  "hex": "#521865",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 285.195,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34076,
    "c": 0.13403,
    "h": 316.4
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#521865
secondary
#559B3E
accent
#E5436B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521865

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

Preview Lab → · Contrast checker → · Palette generator →

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