#52227D#52227D

#52227D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.147 H 304.2°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#52227D
RGBrgb(82, 34, 125)
HSLhsl(272, 57%, 31%)
HSVhsv(272, 73%, 49%)
CMYKcmyk(34.4%, 72.8%, 0%, 51%)
CIE-LABlab(25.01, 40.07, -42.68)
CIE-LCHlch(25.01, 58.55, 313.19°)
OKLaboklab(37.13% 0.0824 -0.1214)
OKLCHoklch(37.13% 0.147 304.2)
XYZxyz(7.7525, 4.4186, 19.8425)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52227D #4D7D22
analogous
#24227D #52227D #7D227A
triadic
#52227D #7D5222 #227D52
tetradic
#52227D #7D2422 #4D7D22 #227A7D
square
#52227D #7D2422 #4D7D22 #227A7D
split-complementary
#52227D #7A7D22 #227D24
monochromatic
#13081D #32154D #52227D #722FAD #904BCE

Accessibility & contrast

On white

11.15
#52227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52227D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52227D#FFFFFF#000000##FFFFFF
##52227D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#4A374D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52227d;
/* rgb */ color: rgb(82, 34, 125);
/* oklch */ color: oklch(37.1% 0.147 304.2);
Tailwind
colors: {
  custom: {
    50: '#8761a3',
    500: '#52227d',
    950: '#000000',
  },
}
SCSS
$custom: #52227d;
$custom-light: #8761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52227d",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 271.648,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37129,
    "c": 0.14672,
    "h": 304.2
  },
  "luminance": 0.04419
}

Semantic roles & 50–950 ramp

primary
#52227D
secondary
#7BB04B
accent
#E04790
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52227D

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

Preview Lab → · Contrast checker → · Palette generator →

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