#52228F#52228F

#52228F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.167 H 298.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#52228F
RGBrgb(82, 34, 143)
HSLhsl(266, 62%, 35%)
HSVhsv(266, 76%, 56%)
CMYKcmyk(42.7%, 76.2%, 0%, 43.9%)
CIE-LABlab(26.51, 44.74, -51.51)
CIE-LCHlch(26.51, 68.23, 310.98°)
OKLaboklab(38.66% 0.0786 -0.1473)
OKLCHoklch(38.66% 0.167 298.1)
XYZxyz(9.0083, 4.9209, 26.4565)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52228F #5F8F22
analogous
#22298F #52228F #89228F
triadic
#52228F #8F5222 #228F52
tetradic
#52228F #8F2229 #5F8F22 #228F89
square
#52228F #8F2229 #5F8F22 #228F89
split-complementary
#52228F #8F8922 #298F22
monochromatic
#190A2C #36165E #52228F #6E2EC0 #8E55D7

Accessibility & contrast

On white

10.58
#52228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#52228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52228F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52228F#FFFFFF#000000##FFFFFF
##52228F1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#433E57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52228f;
/* rgb */ color: rgb(82, 34, 143);
/* oklch */ color: oklch(38.7% 0.167 298.1);
Tailwind
colors: {
  custom: {
    50: '#8962b1',
    500: '#52228f',
    950: '#000000',
  },
}
SCSS
$custom: #52228f;
$custom-light: #8962b1;
$custom-dark: #000000;
JSON
{
  "hex": "#52228f",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 266.422,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38658,
    "c": 0.167,
    "h": 298.1
  },
  "luminance": 0.04921
}

Semantic roles & 50–950 ramp

primary
#52228F
secondary
#8DBA52
accent
#E5439E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #52228F

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

Preview Lab → · Contrast checker → · Palette generator →

#52228F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva