#52229C#52229C

#52229C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.181 H 294.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#52229C
RGBrgb(82, 34, 156)
HSLhsl(264, 64%, 37%)
HSVhsv(264, 78%, 61%)
CMYKcmyk(47.4%, 78.2%, 0%, 38.8%)
CIE-LABlab(27.68, 48.18, -57.59)
CIE-LCHlch(27.68, 75.09, 309.91°)
OKLaboklab(39.84% 0.0751 -0.1652)
OKLCHoklch(39.84% 0.181 294.5)
XYZxyz(10.0508, 5.3379, 31.9468)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52229C #6C9C22
analogous
#222F9C #52229C #8F229C
triadic
#52229C #9C5222 #229C52
tetradic
#52229C #9C222F #6C9C22 #229C8F
square
#52229C #9C222F #6C9C22 #229C8F
split-complementary
#52229C #9C8F22 #2F9C22
monochromatic
#1D0C38 #38176A #52229C #6C2DCE #8F5DDC

Accessibility & contrast

On white

10.16
#52229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#52229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52229C
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52229C#FFFFFF#000000##FFFFFF
##52229C1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3C445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52229c;
/* rgb */ color: rgb(82, 34, 156);
/* oklch */ color: oklch(39.8% 0.181 294.5);
Tailwind
colors: {
  custom: {
    50: '#8a63ba',
    500: '#52229c',
    950: '#000000',
  },
}
SCSS
$custom: #52229c;
$custom-light: #8a63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52229c",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 263.607,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39837,
    "c": 0.18145,
    "h": 294.5
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#52229C
secondary
#98C05A
accent
#E741A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52229C

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

Preview Lab → · Contrast checker → · Palette generator →

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