#522187#522187

#522187 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.159 H 300.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#522187
RGBrgb(82, 33, 135)
HSLhsl(269, 61%, 33%)
HSVhsv(269, 76%, 53%)
CMYKcmyk(39.3%, 75.6%, 0%, 47.1%)
CIE-LABlab(25.66, 43.13, -47.92)
CIE-LCHlch(25.66, 64.47, 311.98°)
OKLaboklab(37.84% 0.0815 -0.1368)
OKLCHoklch(37.84% 0.159 300.8)
XYZxyz(8.3956, 4.6308, 23.3685)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522187 #568721
analogous
#212387 #522187 #852187
triadic
#522187 #875221 #218752
tetradic
#522187 #872123 #568721 #218785
square
#522187 #872123 #568721 #218785
split-complementary
#522187 #878521 #238721
monochromatic
#160925 #341556 #522187 #702DB8 #8F4FD4

Accessibility & contrast

On white

10.90
#522187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#522187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522187
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522187#FFFFFF#000000##FFFFFF
##5221871.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522187;
/* rgb */ color: rgb(82, 33, 135);
/* oklch */ color: oklch(37.8% 0.159 300.8);
Tailwind
colors: {
  custom: {
    50: '#8861ab',
    500: '#522187',
    950: '#000000',
  },
}
SCSS
$custom: #522187;
$custom-light: #8861ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522187",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 268.824,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37843,
    "c": 0.15921,
    "h": 300.8
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#522187
secondary
#84B74D
accent
#E44497
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522187

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

Preview Lab → · Contrast checker → · Palette generator →

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