#522885#522885

#522885 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.148 H 300.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#522885
RGBrgb(82, 40, 133)
HSLhsl(267, 54%, 34%)
HSVhsv(267, 70%, 52%)
CMYKcmyk(38.3%, 69.9%, 0%, 47.8%)
CIE-LABlab(26.75, 39.08, -44.90)
CIE-LCHlch(26.75, 59.52, 311.04°)
OKLaboklab(38.57% 0.0745 -0.1279)
OKLCHoklch(38.57% 0.148 300.2)
XYZxyz(8.4711, 5.0048, 22.7055)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522885 #5B8528
analogous
#282D85 #522885 #812885
triadic
#522885 #855228 #288552
tetradic
#522885 #85282D #5B8528 #288581
square
#522885 #85282D #5B8528 #288581
split-complementary
#522885 #858128 #2D8528
monochromatic
#180C27 #351A56 #522885 #6F36B4 #8E5ACD

Accessibility & contrast

On white

10.49
#522885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522885
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522885#FFFFFF#000000##FFFFFF
##5228851.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#473E53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522885;
/* rgb */ color: rgb(82, 40, 133);
/* oklch */ color: oklch(38.6% 0.148 300.2);
Tailwind
colors: {
  custom: {
    50: '#8765a9',
    500: '#522885',
    950: '#000000',
  },
}
SCSS
$custom: #522885;
$custom-light: #8765a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522885",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 267.097,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38569,
    "c": 0.148,
    "h": 300.2
  },
  "luminance": 0.05005
}

Semantic roles & 50–950 ramp

primary
#522885
secondary
#89B356
accent
#DD4B9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522885

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

Preview Lab → · Contrast checker → · Palette generator →

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