#52229D#52229D

#52229D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.183 H 294.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#52229D
RGBrgb(82, 34, 157)
HSLhsl(263, 64%, 37%)
HSVhsv(263, 78%, 62%)
CMYKcmyk(47.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(27.77, 48.45, -58.05)
CIE-LCHlch(27.77, 75.61, 309.85°)
OKLaboklab(39.93% 0.0748 -0.1665)
OKLCHoklch(39.93% 0.183 294.2)
XYZxyz(10.1358, 5.3719, 32.3946)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52229D #6D9D22
analogous
#222F9D #52229D #90229D
triadic
#52229D #9D5222 #229D52
tetradic
#52229D #9D222F #6D9D22 #229D90
square
#52229D #9D222F #6D9D22 #229D90
split-complementary
#52229D #9D9022 #2F9D22
monochromatic
#1D0C38 #38176B #52229D #6C2DCF #8F5DDC

Accessibility & contrast

On white

10.12
#52229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52229D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52229D#FFFFFF#000000##FFFFFF
##52229D1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#3B445F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52229d;
/* rgb */ color: rgb(82, 34, 157);
/* oklch */ color: oklch(39.9% 0.183 294.2);
Tailwind
colors: {
  custom: {
    50: '#8a63bb',
    500: '#52229d',
    950: '#000000',
  },
}
SCSS
$custom: #52229d;
$custom-light: #8a63bb;
$custom-dark: #000000;
JSON
{
  "hex": "#52229d",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 263.415,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39929,
    "c": 0.18255,
    "h": 294.2
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#52229D
secondary
#99C15A
accent
#E740A6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #52229D

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

Preview Lab → · Contrast checker → · Palette generator →

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