#52227C#52227C

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

Color values

HEX#52227C
RGBrgb(82, 34, 124)
HSLhsl(272, 57%, 31%)
HSVhsv(272, 73%, 49%)
CMYKcmyk(33.9%, 72.6%, 0%, 51.4%)
CIE-LABlab(24.93, 39.82, -42.18)
CIE-LCHlch(24.93, 58.01, 313.35°)
OKLaboklab(37.05% 0.0826 -0.1199)
OKLCHoklch(37.05% 0.146 304.6)
XYZxyz(7.6890, 4.3932, 19.5078)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52227C #4C7C22
analogous
#25227C #52227C #7C2279
triadic
#52227C #7C5222 #227C52
tetradic
#52227C #7C2522 #4C7C22 #22797C
square
#52227C #7C2522 #4C7C22 #22797C
split-complementary
#52227C #797C22 #227C25
monochromatic
#12081C #32154C #52227C #722FAC #914BCE

Accessibility & contrast

On white

11.18
#52227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52227C
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52227C#FFFFFF#000000##FFFFFF
##52227C1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#4A374C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52227c;
/* rgb */ color: rgb(82, 34, 124);
/* oklch */ color: oklch(37.0% 0.146 304.6);
Tailwind
colors: {
  custom: {
    50: '#8761a3',
    500: '#52227c',
    950: '#000000',
  },
}
SCSS
$custom: #52227c;
$custom-light: #8761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52227c",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 272,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37048,
    "c": 0.14559,
    "h": 304.6
  },
  "luminance": 0.04393
}

Semantic roles & 50–950 ramp

primary
#52227C
secondary
#7AAF4B
accent
#E0488F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52227C

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

Preview Lab → · Contrast checker → · Palette generator →

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