#522685#522685

#522685 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.151 H 300.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#522685
RGBrgb(82, 38, 133)
HSLhsl(268, 56%, 34%)
HSVhsv(268, 71%, 52%)
CMYKcmyk(38.3%, 71.4%, 0%, 47.8%)
CIE-LABlab(26.37, 40.13, -45.51)
CIE-LCHlch(26.37, 60.67, 311.41°)
OKLaboklab(38.3% 0.0767 -0.1297)
OKLCHoklch(38.3% 0.151 300.6)
XYZxyz(8.4054, 4.8735, 22.6836)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522685 #598526
analogous
#262985 #522685 #812685
triadic
#522685 #855226 #268552
tetradic
#522685 #852629 #598526 #268581
square
#522685 #852629 #598526 #268581
split-complementary
#522685 #858126 #298526
monochromatic
#170B26 #351855 #522685 #6F34B5 #8E57CF

Accessibility & contrast

On white

10.63
#522685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522685
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522685#FFFFFF#000000##FFFFFF
##5226851.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#473D52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522685;
/* rgb */ color: rgb(82, 38, 133);
/* oklch */ color: oklch(38.3% 0.151 300.6);
Tailwind
colors: {
  custom: {
    50: '#8764a9',
    500: '#522685',
    950: '#000000',
  },
}
SCSS
$custom: #522685;
$custom-light: #8764a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522685",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 133
  },
  "hsl": {
    "h": 267.789,
    "s": 55.556,
    "l": 33.529
  },
  "oklch": {
    "l": 0.383,
    "c": 0.15067,
    "h": 300.6
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#522685
secondary
#87B353
accent
#DF4999
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522685

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

Preview Lab → · Contrast checker → · Palette generator →

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