#52288B#52288B

#52288B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.155 H 298.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#52288B
RGBrgb(82, 40, 139)
HSLhsl(265, 55%, 35%)
HSVhsv(265, 71%, 55%)
CMYKcmyk(41%, 71.2%, 0%, 45.5%)
CIE-LABlab(27.23, 40.70, -47.86)
CIE-LCHlch(27.23, 62.82, 310.38°)
OKLaboklab(39.06% 0.0735 -0.1366)
OKLCHoklch(39.06% 0.155 298.3)
XYZxyz(8.8975, 5.1754, 24.9513)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52288B #618B28
analogous
#282F8B #52288B #84288B
triadic
#52288B #8B5228 #288B52
tetradic
#52288B #8B282F #618B28 #288B84
square
#52288B #8B282F #618B28 #288B84
split-complementary
#52288B #8B8428 #2F8B28
monochromatic
#1A0D2C #361A5B #52288B #6E36BB #8E5DD0

Accessibility & contrast

On white

10.32
#52288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#52288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52288B
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52288B#FFFFFF#000000##FFFFFF
##52288B1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#444056
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52288b;
/* rgb */ color: rgb(82, 40, 139);
/* oklch */ color: oklch(39.1% 0.155 298.3);
Tailwind
colors: {
  custom: {
    50: '#8865ae',
    500: '#52288b',
    950: '#000000',
  },
}
SCSS
$custom: #52288b;
$custom-light: #8865ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52288b",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 265.455,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39063,
    "c": 0.15512,
    "h": 298.3
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#52288B
secondary
#8EB659
accent
#DF499F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52288B

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

Preview Lab → · Contrast checker → · Palette generator →

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