#52228B#52228B

#52228B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.163 H 299.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#52228B
RGBrgb(82, 34, 139)
HSLhsl(267, 61%, 34%)
HSVhsv(267, 76%, 55%)
CMYKcmyk(41%, 75.5%, 0%, 45.5%)
CIE-LABlab(26.16, 43.69, -49.59)
CIE-LCHlch(26.16, 66.09, 311.38°)
OKLaboklab(38.31% 0.0796 -0.1417)
OKLCHoklch(38.31% 0.163 299.3)
XYZxyz(8.7107, 4.8019, 24.8890)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52228B #5B8B22
analogous
#22268B #52228B #87228B
triadic
#52228B #8B5222 #228B52
tetradic
#52228B #8B2226 #5B8B22 #228B87
square
#52228B #8B2226 #5B8B22 #228B87
split-complementary
#52228B #8B8722 #268B22
monochromatic
#180A29 #35165A #52228B #6F2EBC #8E53D5

Accessibility & contrast

On white

10.71
#52228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#52228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52228B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52228B#FFFFFF#000000##FFFFFF
##52228B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#443D55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52228b;
/* rgb */ color: rgb(82, 34, 139);
/* oklch */ color: oklch(38.3% 0.163 299.3);
Tailwind
colors: {
  custom: {
    50: '#8862ae',
    500: '#52228b',
    950: '#000000',
  },
}
SCSS
$custom: #52228b;
$custom-light: #8862ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52228b",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 267.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.16251,
    "h": 299.3
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#52228B
secondary
#89B850
accent
#E4449B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52228B

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

Preview Lab → · Contrast checker → · Palette generator →

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