#522386#522386

#522386 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.156 H 300.8°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#522386
RGBrgb(82, 35, 134)
HSLhsl(268, 59%, 33%)
HSVhsv(268, 74%, 53%)
CMYKcmyk(38.8%, 73.9%, 0%, 47.5%)
CIE-LABlab(25.91, 41.90, -46.88)
CIE-LCHlch(25.91, 62.88, 311.79°)
OKLaboklab(38% 0.0797 -0.1337)
OKLCHoklch(38% 0.156 300.8)
XYZxyz(8.3827, 4.7171, 23.0185)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522386 #578623
analogous
#232586 #522386 #832386
triadic
#522386 #865223 #238652
tetradic
#522386 #862325 #578623 #238683
square
#522386 #862325 #578623 #238683
split-complementary
#522386 #868323 #258623
monochromatic
#170A25 #341655 #522386 #7030B7 #8E52D2

Accessibility & contrast

On white

10.81
#522386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#522386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522386
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522386#FFFFFF#000000##FFFFFF
##5223861.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#463B52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522386;
/* rgb */ color: rgb(82, 35, 134);
/* oklch */ color: oklch(38.0% 0.156 300.8);
Tailwind
colors: {
  custom: {
    50: '#8862aa',
    500: '#522386',
    950: '#000000',
  },
}
SCSS
$custom: #522386;
$custom-light: #8862aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522386",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 268.485,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37999,
    "c": 0.15566,
    "h": 300.8
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#522386
secondary
#85B54F
accent
#E24698
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522386

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

Preview Lab → · Contrast checker → · Palette generator →

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