#522387#522387

#522387 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.157 H 300.5°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#522387
RGBrgb(82, 35, 135)
HSLhsl(268, 59%, 33%)
HSVhsv(268, 74%, 53%)
CMYKcmyk(39.3%, 74.1%, 0%, 47.1%)
CIE-LABlab(26.00, 42.16, -47.37)
CIE-LCHlch(26.00, 63.42, 311.67°)
OKLaboklab(38.08% 0.0795 -0.1352)
OKLCHoklch(38.08% 0.157 300.5)
XYZxyz(8.4528, 4.7451, 23.3875)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522387 #588723
analogous
#232687 #522387 #842387
triadic
#522387 #875223 #238752
tetradic
#522387 #872326 #588723 #238784
square
#522387 #872326 #588723 #238784
split-complementary
#522387 #878423 #268723
monochromatic
#170A26 #341656 #522387 #7030B8 #8E52D2

Accessibility & contrast

On white

10.77
#522387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522387
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522387#FFFFFF#000000##FFFFFF
##5223871.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#463C53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522387;
/* rgb */ color: rgb(82, 35, 135);
/* oklch */ color: oklch(38.1% 0.157 300.5);
Tailwind
colors: {
  custom: {
    50: '#8862ab',
    500: '#522387',
    950: '#000000',
  },
}
SCSS
$custom: #522387;
$custom-light: #8862ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522387",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 268.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38084,
    "c": 0.1568,
    "h": 300.5
  },
  "luminance": 0.04745
}

Semantic roles & 50–950 ramp

primary
#522387
secondary
#86B650
accent
#E24699
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522387

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

Preview Lab → · Contrast checker → · Palette generator →

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