#522285#522285

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

Color values

HEX#522285
RGBrgb(82, 34, 133)
HSLhsl(269, 59%, 33%)
HSVhsv(269, 74%, 52%)
CMYKcmyk(38.3%, 74.4%, 0%, 47.8%)
CIE-LABlab(25.66, 42.13, -46.67)
CIE-LCHlch(25.66, 62.87, 312.07°)
OKLaboklab(37.79% 0.0809 -0.1331)
OKLCHoklch(37.79% 0.156 301.3)
XYZxyz(8.2843, 4.6313, 22.6432)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522285 #558522
analogous
#222485 #522285 #832285
triadic
#522285 #855222 #228552
tetradic
#522285 #852224 #558522 #228583
square
#522285 #852224 #558522 #228583
split-complementary
#522285 #858322 #248522
monochromatic
#160924 #341654 #522285 #702EB6 #8F4FD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522285#FFFFFF#000000##FFFFFF
##5222851.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)
#003C88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#473A51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522285;
/* rgb */ color: rgb(82, 34, 133);
/* oklch */ color: oklch(37.8% 0.156 301.3);
Tailwind
colors: {
  custom: {
    50: '#8862a9',
    500: '#522285',
    950: '#000000',
  },
}
SCSS
$custom: #522285;
$custom-light: #8862a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522285",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 269.091,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37792,
    "c": 0.15576,
    "h": 301.3
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#522285
secondary
#83B64D
accent
#E24596
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522285

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

Preview Lab → · Contrast checker → · Palette generator →

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