#52227B#52227B

#52227B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.144 H 304.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#52227B
RGBrgb(82, 34, 123)
HSLhsl(272, 57%, 31%)
HSVhsv(272, 72%, 48%)
CMYKcmyk(33.3%, 72.4%, 0%, 51.8%)
CIE-LABlab(24.85, 39.57, -41.67)
CIE-LCHlch(24.85, 57.46, 313.52°)
OKLaboklab(36.97% 0.0828 -0.1184)
OKLCHoklch(36.97% 0.144 304.9)
XYZxyz(7.6261, 4.3680, 19.1764)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52227B #4B7B22
analogous
#26227B #52227B #7B2277
triadic
#52227B #7B5222 #227B52
tetradic
#52227B #7B2622 #4B7B22 #22777B
square
#52227B #7B2622 #4B7B22 #22777B
split-complementary
#52227B #777B22 #227B26
monochromatic
#12071B #32154B #52227B #722FAB #914ACD

Accessibility & contrast

On white

11.21
#52227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52227B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52227B#FFFFFF#000000##FFFFFF
##52227B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#4A364C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52227b;
/* rgb */ color: rgb(82, 34, 123);
/* oklch */ color: oklch(37.0% 0.144 304.9);
Tailwind
colors: {
  custom: {
    50: '#8761a2',
    500: '#52227b',
    950: '#000000',
  },
}
SCSS
$custom: #52227b;
$custom-light: #8761a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52227b",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 272.36,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36968,
    "c": 0.14445,
    "h": 304.9
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#52227B
secondary
#79AE4B
accent
#E0488E
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52227B

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

Preview Lab → · Contrast checker → · Palette generator →

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