#52228A#52228A

#52228A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.161 H 299.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#52228A
RGBrgb(82, 34, 138)
HSLhsl(268, 60%, 34%)
HSVhsv(268, 75%, 54%)
CMYKcmyk(40.6%, 75.4%, 0%, 45.9%)
CIE-LABlab(26.08, 43.43, -49.11)
CIE-LCHlch(26.08, 65.56, 311.49°)
OKLaboklab(38.22% 0.0798 -0.1403)
OKLCHoklch(38.22% 0.161 299.6)
XYZxyz(8.6380, 4.7728, 24.5060)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52228A #5A8A22
analogous
#22268A #52228A #86228A
triadic
#52228A #8A5222 #228A52
tetradic
#52228A #8A2226 #5A8A22 #228A86
square
#52228A #8A2226 #5A8A22 #228A86
split-complementary
#52228A #8A8622 #268A22
monochromatic
#180A28 #351659 #52228A #6F2EBB #8E52D4

Accessibility & contrast

On white

10.74
#52228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#52228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52228A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52228A#FFFFFF#000000##FFFFFF
##52228A1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#453C54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52228a;
/* rgb */ color: rgb(82, 34, 138);
/* oklch */ color: oklch(38.2% 0.161 299.6);
Tailwind
colors: {
  custom: {
    50: '#8862ad',
    500: '#52228a',
    950: '#000000',
  },
}
SCSS
$custom: #52228a;
$custom-light: #8862ad;
$custom-dark: #000000;
JSON
{
  "hex": "#52228a",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 267.692,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.16139,
    "h": 299.6
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#52228A
secondary
#88B850
accent
#E4449A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52228A

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

Preview Lab → · Contrast checker → · Palette generator →

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