#52288C#52288C

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

Color values

HEX#52288C
RGBrgb(82, 40, 140)
HSLhsl(265, 56%, 35%)
HSVhsv(265, 71%, 55%)
CMYKcmyk(41.4%, 71.4%, 0%, 45.1%)
CIE-LABlab(27.31, 40.97, -48.34)
CIE-LCHlch(27.31, 63.37, 310.28°)
OKLaboklab(39.15% 0.0733 -0.138)
OKLCHoklch(39.15% 0.156 298)
XYZxyz(8.9709, 5.2047, 25.3378)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52288C #628C28
analogous
#28308C #52288C #84288C
triadic
#52288C #8C5228 #288C52
tetradic
#52288C #8C2830 #628C28 #288C84
square
#52288C #8C2830 #628C28 #288C84
split-complementary
#52288C #8C8428 #308C28
monochromatic
#1A0D2D #361A5C #52288C #6E36BC #8E5ED1

Accessibility & contrast

On white

10.29
#52288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52288C
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52288C#FFFFFF#000000##FFFFFF
##52288C1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#444057
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52288c;
/* rgb */ color: rgb(82, 40, 140);
/* oklch */ color: oklch(39.1% 0.156 298.0);
Tailwind
colors: {
  custom: {
    50: '#8865ae',
    500: '#52288c',
    950: '#000000',
  },
}
SCSS
$custom: #52288c;
$custom-light: #8865ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52288c",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 265.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.15631,
    "h": 298
  },
  "luminance": 0.05205
}

Semantic roles & 50–950 ramp

primary
#52288C
secondary
#8FB65A
accent
#DF49A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52288C

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

Preview Lab → · Contrast checker → · Palette generator →

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