#522297#522297

#522297 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.176 H 295.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#522297
RGBrgb(82, 34, 151)
HSLhsl(265, 63%, 36%)
HSVhsv(265, 77%, 59%)
CMYKcmyk(45.7%, 77.5%, 0%, 40.8%)
CIE-LABlab(27.22, 46.85, -55.28)
CIE-LCHlch(27.22, 72.47, 310.28°)
OKLaboklab(39.38% 0.0765 -0.1584)
OKLCHoklch(39.38% 0.176 295.8)
XYZxyz(9.6361, 5.1720, 29.7628)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522297 #679722
analogous
#222D97 #522297 #8D2297
triadic
#522297 #975222 #229752
tetradic
#522297 #97222D #679722 #22978D
square
#522297 #97222D #679722 #22978D
split-complementary
#522297 #978D22 #2D9722
monochromatic
#1C0C33 #371765 #522297 #6D2DC9 #8E5ADA

Accessibility & contrast

On white

10.32
#522297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522297
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522297#FFFFFF#000000##FFFFFF
##5222971.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#3F425B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522297;
/* rgb */ color: rgb(82, 34, 151);
/* oklch */ color: oklch(39.4% 0.176 295.8);
Tailwind
colors: {
  custom: {
    50: '#8a63b7',
    500: '#522297',
    950: '#000000',
  },
}
SCSS
$custom: #522297;
$custom-light: #8a63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522297",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 264.615,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39376,
    "c": 0.17591,
    "h": 295.8
  },
  "luminance": 0.05172
}

Semantic roles & 50–950 ramp

primary
#522297
secondary
#94BE57
accent
#E642A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522297

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

Preview Lab → · Contrast checker → · Palette generator →

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