#521862#521862

#521862 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.131 H 318.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#521862
RGBrgb(82, 24, 98)
HSLhsl(287, 61%, 24%)
HSVhsv(287, 76%, 38%)
CMYKcmyk(16.3%, 75.5%, 0%, 61.6%)
CIE-LABlab(21.32, 38.35, -31.23)
CIE-LCHlch(21.32, 49.46, 320.85°)
OKLaboklab(33.85% 0.0974 -0.0877)
OKLCHoklch(33.85% 0.131 318)
XYZxyz(6.0106, 3.3292, 11.8789)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521862 #286218
analogous
#2D1862 #521862 #62184D
triadic
#521862 #625218 #186252
tetradic
#521862 #622D18 #286218 #184D62
square
#521862 #622D18 #286218 #184D62
split-complementary
#521862 #4D6218 #18622D
monochromatic
#150619 #290C31 #521862 #7B2493 #A430C4

Accessibility & contrast

On white

12.61
#521862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521862
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521862#FFFFFF#000000##FFFFFF
##5218621.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#1B3560
Tritanopia (blue-blind)
#52273B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521862;
/* rgb */ color: rgb(82, 24, 98);
/* oklch */ color: oklch(33.9% 0.131 318.0);
Tailwind
colors: {
  custom: {
    50: '#855b8f',
    500: '#521862',
    950: '#000000',
  },
}
SCSS
$custom: #521862;
$custom-light: #855b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#521862",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 287.027,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33854,
    "c": 0.13102,
    "h": 318
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#521862
secondary
#51983E
accent
#E44467
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #521862

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

Preview Lab → · Contrast checker → · Palette generator →

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