#521962#521962

#521962 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.130 H 317.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#521962
RGBrgb(82, 25, 98)
HSLhsl(287, 59%, 24%)
HSVhsv(287, 74%, 38%)
CMYKcmyk(16.3%, 74.5%, 0%, 61.6%)
CIE-LABlab(21.47, 37.91, -30.98)
CIE-LCHlch(21.47, 48.96, 320.75°)
OKLaboklab(33.97% 0.0962 -0.0869)
OKLCHoklch(33.97% 0.13 317.9)
XYZxyz(6.0316, 3.3712, 11.8859)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521962 #296219
analogous
#2E1962 #521962 #62194E
triadic
#521962 #625219 #196252
tetradic
#521962 #622E19 #296219 #194E62
square
#521962 #622E19 #296219 #194E62
split-complementary
#521962 #4E6219 #19622E
monochromatic
#140618 #290D31 #521962 #7B2593 #A432C4

Accessibility & contrast

On white

12.54
#521962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521962
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521962#FFFFFF#000000##FFFFFF
##5219621.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#1C3560
Tritanopia (blue-blind)
#52273B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521962;
/* rgb */ color: rgb(82, 25, 98);
/* oklch */ color: oklch(34.0% 0.130 317.9);
Tailwind
colors: {
  custom: {
    50: '#855b8f',
    500: '#521962',
    950: '#000000',
  },
}
SCSS
$custom: #521962;
$custom-light: #855b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#521962",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 286.849,
    "s": 59.35,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33966,
    "c": 0.12967,
    "h": 317.9
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#521962
secondary
#52983F
accent
#E34568
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #521962

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

Preview Lab → · Contrast checker → · Palette generator →

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