#52288E#52288E

#52288E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.159 H 297.4°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#52288E
RGBrgb(82, 40, 142)
HSLhsl(265, 56%, 36%)
HSVhsv(265, 72%, 56%)
CMYKcmyk(42.3%, 71.8%, 0%, 44.3%)
CIE-LABlab(27.47, 41.51, -49.32)
CIE-LCHlch(27.47, 64.46, 310.09°)
OKLaboklab(39.32% 0.0729 -0.1409)
OKLCHoklch(39.32% 0.159 297.4)
XYZxyz(9.1197, 5.2643, 26.1216)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52288E #648E28
analogous
#28318E #52288E #85288E
triadic
#52288E #8E5228 #288E52
tetradic
#52288E #8E2831 #648E28 #288E85
square
#52288E #8E2831 #648E28 #288E85
split-complementary
#52288E #8E8528 #318E28
monochromatic
#1B0D2F #361B5E #52288E #6E35BE #8E5FD2

Accessibility & contrast

On white

10.23
#52288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#52288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52288E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52288E#FFFFFF#000000##FFFFFF
##52288E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#434158
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52288e;
/* rgb */ color: rgb(82, 40, 142);
/* oklch */ color: oklch(39.3% 0.159 297.4);
Tailwind
colors: {
  custom: {
    50: '#8866b0',
    500: '#52288e',
    950: '#000000',
  },
}
SCSS
$custom: #52288e;
$custom-light: #8866b0;
$custom-dark: #000000;
JSON
{
  "hex": "#52288e",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 264.706,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39316,
    "c": 0.15866,
    "h": 297.4
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#52288E
secondary
#91B75B
accent
#DF48A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #52288E

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

Preview Lab → · Contrast checker → · Palette generator →

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