#52227E#52227E

#52227E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.148 H 303.8°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#52227E
RGBrgb(82, 34, 126)
HSLhsl(271, 58%, 31%)
HSVhsv(271, 73%, 49%)
CMYKcmyk(34.9%, 73%, 0%, 50.6%)
CIE-LABlab(25.09, 40.33, -43.19)
CIE-LCHlch(25.09, 59.09, 313.04°)
OKLaboklab(37.21% 0.0823 -0.1229)
OKLCHoklch(37.21% 0.148 303.8)
XYZxyz(7.8167, 4.4443, 20.1806)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52227E #4E7E22
analogous
#24227E #52227E #7E227C
triadic
#52227E #7E5222 #227E52
tetradic
#52227E #7E2422 #4E7E22 #227C7E
square
#52227E #7E2422 #4E7E22 #227C7E
split-complementary
#52227E #7C7E22 #227E24
monochromatic
#13081E #33154E #52227E #712FAE #904CCF

Accessibility & contrast

On white

11.12
#52227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52227E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52227E#FFFFFF#000000##FFFFFF
##52227E1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#49384D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52227e;
/* rgb */ color: rgb(82, 34, 126);
/* oklch */ color: oklch(37.2% 0.148 303.8);
Tailwind
colors: {
  custom: {
    50: '#8761a4',
    500: '#52227e',
    950: '#000000',
  },
}
SCSS
$custom: #52227e;
$custom-light: #8761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52227e",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 271.304,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37211,
    "c": 0.14786,
    "h": 303.8
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#52227E
secondary
#7CB14B
accent
#E14791
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52227E

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

Preview Lab → · Contrast checker → · Palette generator →

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