#522295#522295

#522295 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.174 H 296.3°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#522295
RGBrgb(82, 34, 149)
HSLhsl(265, 63%, 36%)
HSVhsv(265, 77%, 58%)
CMYKcmyk(45%, 77.2%, 0%, 41.6%)
CIE-LABlab(27.04, 46.32, -54.35)
CIE-LCHlch(27.04, 71.41, 310.44°)
OKLaboklab(39.2% 0.0771 -0.1556)
OKLCHoklch(39.2% 0.174 296.3)
XYZxyz(9.4751, 5.1076, 28.9146)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522295 #659522
analogous
#222C95 #522295 #8B2295
triadic
#522295 #955222 #229552
tetradic
#522295 #95222C #659522 #22958B
square
#522295 #95222C #659522 #22958B
split-complementary
#522295 #958B22 #2C9522
monochromatic
#1B0B31 #371763 #522295 #6D2DC7 #8E58D9

Accessibility & contrast

On white

10.39
#522295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522295
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522295#FFFFFF#000000##FFFFFF
##5222951.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#40415A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522295;
/* rgb */ color: rgb(82, 34, 149);
/* oklch */ color: oklch(39.2% 0.174 296.3);
Tailwind
colors: {
  custom: {
    50: '#8963b5',
    500: '#522295',
    950: '#000000',
  },
}
SCSS
$custom: #522295;
$custom-light: #8963b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522295",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 265.043,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39195,
    "c": 0.17368,
    "h": 296.3
  },
  "luminance": 0.05108
}

Semantic roles & 50–950 ramp

primary
#522295
secondary
#92BD56
accent
#E642A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522295

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

Preview Lab → · Contrast checker → · Palette generator →

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