#52228C#52228C

#52228C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.164 H 299.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#52228C
RGBrgb(82, 34, 140)
HSLhsl(267, 61%, 34%)
HSVhsv(267, 76%, 55%)
CMYKcmyk(41.4%, 75.7%, 0%, 45.1%)
CIE-LABlab(26.25, 43.95, -50.07)
CIE-LCHlch(26.25, 66.63, 311.28°)
OKLaboklab(38.39% 0.0794 -0.1431)
OKLCHoklch(38.39% 0.164 299)
XYZxyz(8.7841, 4.8312, 25.2756)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52228C #5C8C22
analogous
#22278C #52228C #87228C
triadic
#52228C #8C5222 #228C52
tetradic
#52228C #8C2227 #5C8C22 #228C87
square
#52228C #8C2227 #5C8C22 #228C87
split-complementary
#52228C #8C8722 #278C22
monochromatic
#180A2A #35165B #52228C #6F2EBD #8E53D5

Accessibility & contrast

On white

10.68
#52228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52228C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52228C#FFFFFF#000000##FFFFFF
##52228C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52228c;
/* rgb */ color: rgb(82, 34, 140);
/* oklch */ color: oklch(38.4% 0.164 299.0);
Tailwind
colors: {
  custom: {
    50: '#8862ae',
    500: '#52228c',
    950: '#000000',
  },
}
SCSS
$custom: #52228c;
$custom-light: #8862ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52228c",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 267.17,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38394,
    "c": 0.16364,
    "h": 299
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#52228C
secondary
#8AB951
accent
#E4449B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52228C

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

Preview Lab → · Contrast checker → · Palette generator →

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