#52228D#52228D

#52228D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.165 H 298.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#52228D
RGBrgb(82, 34, 141)
HSLhsl(267, 61%, 34%)
HSVhsv(267, 76%, 55%)
CMYKcmyk(41.8%, 75.9%, 0%, 44.7%)
CIE-LABlab(26.33, 44.22, -50.55)
CIE-LCHlch(26.33, 67.16, 311.17°)
OKLaboklab(38.48% 0.0791 -0.1445)
OKLCHoklch(38.48% 0.165 298.7)
XYZxyz(8.8582, 4.8609, 25.6657)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52228D #5D8D22
analogous
#22288D #52228D #88228D
triadic
#52228D #8D5222 #228D52
tetradic
#52228D #8D2228 #5D8D22 #228D88
square
#52228D #8D2228 #5D8D22 #228D88
split-complementary
#52228D #8D8822 #288D22
monochromatic
#190A2A #35165C #52228D #6F2EBE #8E54D6

Accessibility & contrast

On white

10.65
#52228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#52228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52228D
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52228D#FFFFFF#000000##FFFFFF
##52228D1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#443E56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52228d;
/* rgb */ color: rgb(82, 34, 141);
/* oklch */ color: oklch(38.5% 0.165 298.7);
Tailwind
colors: {
  custom: {
    50: '#8862af',
    500: '#52228d',
    950: '#000000',
  },
}
SCSS
$custom: #52228d;
$custom-light: #8862af;
$custom-dark: #000000;
JSON
{
  "hex": "#52228d",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 266.916,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38482,
    "c": 0.16476,
    "h": 298.7
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#52228D
secondary
#8BB951
accent
#E4449C
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52228D

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

Preview Lab → · Contrast checker → · Palette generator →

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