#52229E#52229E

#52229E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.184 H 293.9°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#52229E
RGBrgb(82, 34, 158)
HSLhsl(263, 65%, 38%)
HSVhsv(263, 78%, 62%)
CMYKcmyk(48.1%, 78.5%, 0%, 38%)
CIE-LABlab(27.86, 48.71, -58.51)
CIE-LCHlch(27.86, 76.13, 309.78°)
OKLaboklab(40.02% 0.0745 -0.1678)
OKLCHoklch(40.02% 0.184 293.9)
XYZxyz(10.2216, 5.4062, 32.8461)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52229E #6E9E22
analogous
#22309E #52229E #90229E
triadic
#52229E #9E5222 #229E52
tetradic
#52229E #9E2230 #6E9E22 #229E90
square
#52229E #9E2230 #6E9E22 #229E90
split-complementary
#52229E #9E9022 #309E22
monochromatic
#1E0C39 #38176C #52229E #6C2DD0 #8F5EDC

Accessibility & contrast

On white

10.09
#52229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#52229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52229E
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52229E#FFFFFF#000000##FFFFFF
##52229E1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#3B455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52229e;
/* rgb */ color: rgb(82, 34, 158);
/* oklch */ color: oklch(40.0% 0.184 293.9);
Tailwind
colors: {
  custom: {
    50: '#8b63bc',
    500: '#52229e',
    950: '#000000',
  },
}
SCSS
$custom: #52229e;
$custom-light: #8b63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52229e",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 263.226,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40023,
    "c": 0.18365,
    "h": 293.9
  },
  "luminance": 0.05407
}

Semantic roles & 50–950 ramp

primary
#52229E
secondary
#99C15B
accent
#E840A7
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #52229E

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

Preview Lab → · Contrast checker → · Palette generator →

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