#52298D#52298D

#52298D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.156 H 297.5°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#52298D
RGBrgb(82, 41, 141)
HSLhsl(265, 55%, 36%)
HSVhsv(265, 71%, 55%)
CMYKcmyk(41.8%, 70.9%, 0%, 44.7%)
CIE-LABlab(27.58, 40.72, -48.53)
CIE-LCHlch(27.58, 63.35, 310.00°)
OKLaboklab(39.37% 0.0721 -0.1386)
OKLCHoklch(39.37% 0.156 297.5)
XYZxyz(9.0791, 5.3026, 25.7393)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52298D #648D29
analogous
#29328D #52298D #84298D
triadic
#52298D #8D5229 #298D52
tetradic
#52298D #8D2932 #648D29 #298D84
square
#52298D #8D2932 #648D29 #298D84
split-complementary
#52298D #8D8429 #328D29
monochromatic
#1B0D2E #361B5E #52298D #6E37BC #8E60D1

Accessibility & contrast

On white

10.19
#52298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#52298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52298D
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52298D#FFFFFF#000000##FFFFFF
##52298D1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52298d;
/* rgb */ color: rgb(82, 41, 141);
/* oklch */ color: oklch(39.4% 0.156 297.5);
Tailwind
colors: {
  custom: {
    50: '#8866af',
    500: '#52298d',
    950: '#000000',
  },
}
SCSS
$custom: #52298d;
$custom-light: #8866af;
$custom-dark: #000000;
JSON
{
  "hex": "#52298d",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 264.6,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39365,
    "c": 0.1562,
    "h": 297.5
  },
  "luminance": 0.05303
}

Semantic roles & 50–950 ramp

primary
#52298D
secondary
#91B65B
accent
#DE4AA1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52298D

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

Preview Lab → · Contrast checker → · Palette generator →

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