#52288A#52288A

#52288A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.154 H 298.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#52288A
RGBrgb(82, 40, 138)
HSLhsl(266, 55%, 35%)
HSVhsv(266, 71%, 54%)
CMYKcmyk(40.6%, 71%, 0%, 45.9%)
CIE-LABlab(27.15, 40.43, -47.37)
CIE-LCHlch(27.15, 62.27, 310.48°)
OKLaboklab(38.98% 0.0737 -0.1352)
OKLCHoklch(38.98% 0.154 298.6)
XYZxyz(8.8247, 5.1463, 24.5682)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52288A #608A28
analogous
#282F8A #52288A #83288A
triadic
#52288A #8A5228 #288A52
tetradic
#52288A #8A282F #608A28 #288A83
square
#52288A #8A282F #608A28 #288A83
split-complementary
#52288A #8A8328 #2F8A28
monochromatic
#1A0C2B #361A5B #52288A #6E36B9 #8E5DD0

Accessibility & contrast

On white

10.35
#52288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#52288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52288A
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52288A#FFFFFF#000000##FFFFFF
##52288A1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#454056
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52288a;
/* rgb */ color: rgb(82, 40, 138);
/* oklch */ color: oklch(39.0% 0.154 298.6);
Tailwind
colors: {
  custom: {
    50: '#8865ad',
    500: '#52288a',
    950: '#000000',
  },
}
SCSS
$custom: #52288a;
$custom-light: #8865ad;
$custom-dark: #000000;
JSON
{
  "hex": "#52288a",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 265.714,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3898,
    "c": 0.15394,
    "h": 298.6
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#52288A
secondary
#8EB559
accent
#DE499F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52288A

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

Preview Lab → · Contrast checker → · Palette generator →

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