#52229A#52229A

#52229A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.179 H 295.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#52229A
RGBrgb(82, 34, 154)
HSLhsl(264, 64%, 37%)
HSVhsv(264, 78%, 60%)
CMYKcmyk(46.8%, 77.9%, 0%, 39.6%)
CIE-LABlab(27.49, 47.65, -56.67)
CIE-LCHlch(27.49, 74.04, 310.06°)
OKLaboklab(39.65% 0.0757 -0.1625)
OKLCHoklch(39.65% 0.179 295)
XYZxyz(9.8829, 5.2707, 31.0622)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52229A #6A9A22
analogous
#222E9A #52229A #8E229A
triadic
#52229A #9A5222 #229A52
tetradic
#52229A #9A222E #6A9A22 #229A8E
square
#52229A #9A222E #6A9A22 #229A8E
split-complementary
#52229A #9A8E22 #2E9A22
monochromatic
#1D0C36 #371768 #52229A #6D2DCC #8E5BDB

Accessibility & contrast

On white

10.22
#52229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#52229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52229A
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52229A#FFFFFF#000000##FFFFFF
##52229A1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#3D435D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52229a;
/* rgb */ color: rgb(82, 34, 154);
/* oklch */ color: oklch(39.7% 0.179 295.0);
Tailwind
colors: {
  custom: {
    50: '#8a63b9',
    500: '#52229a',
    950: '#000000',
  },
}
SCSS
$custom: #52229a;
$custom-light: #8a63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52229a",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 264,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39652,
    "c": 0.17924,
    "h": 295
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#52229A
secondary
#96BF58
accent
#E741A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #52229A

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

Preview Lab → · Contrast checker → · Palette generator →

#52229A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva