#52288D#52288D

#52288D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.157 H 297.7°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#52288D
RGBrgb(82, 40, 141)
HSLhsl(265, 56%, 35%)
HSVhsv(265, 72%, 55%)
CMYKcmyk(41.8%, 71.6%, 0%, 44.7%)
CIE-LABlab(27.39, 41.24, -48.83)
CIE-LCHlch(27.39, 63.91, 310.18°)
OKLaboklab(39.23% 0.0731 -0.1395)
OKLCHoklch(39.23% 0.157 297.7)
XYZxyz(9.0449, 5.2344, 25.7279)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52288D #638D28
analogous
#28318D #52288D #84288D
triadic
#52288D #8D5228 #288D52
tetradic
#52288D #8D2831 #638D28 #288D84
square
#52288D #8D2831 #638D28 #288D84
split-complementary
#52288D #8D8428 #318D28
monochromatic
#1B0D2E #361A5D #52288D #6E36BD #8E5ED1

Accessibility & contrast

On white

10.26
#52288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52288D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52288D#FFFFFF#000000##FFFFFF
##52288D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#434157
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52288d;
/* rgb */ color: rgb(82, 40, 141);
/* oklch */ color: oklch(39.2% 0.157 297.7);
Tailwind
colors: {
  custom: {
    50: '#8865af',
    500: '#52288d',
    950: '#000000',
  },
}
SCSS
$custom: #52288d;
$custom-light: #8865af;
$custom-dark: #000000;
JSON
{
  "hex": "#52288d",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 264.95,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39231,
    "c": 0.15749,
    "h": 297.7
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#52288D
secondary
#90B75A
accent
#DF49A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52288D

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

Preview Lab → · Contrast checker → · Palette generator →

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