#52248D#52248D

#52248D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.162 H 298.4°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#52248D
RGBrgb(82, 36, 141)
HSLhsl(266, 59%, 35%)
HSVhsv(266, 74%, 55%)
CMYKcmyk(41.8%, 74.5%, 0%, 44.7%)
CIE-LABlab(26.67, 43.26, -50.00)
CIE-LCHlch(26.67, 66.12, 310.86°)
OKLaboklab(38.72% 0.0772 -0.1429)
OKLCHoklch(38.72% 0.162 298.4)
XYZxyz(8.9170, 4.9785, 25.6853)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52248D #5F8D24
analogous
#242A8D #52248D #87248D
triadic
#52248D #8D5224 #248D52
tetradic
#52248D #8D242A #5F8D24 #248D87
square
#52248D #8D242A #5F8D24 #248D87
split-complementary
#52248D #8D8724 #2A8D24
monochromatic
#190B2B #36185C #52248D #6E30BE #8E57D4

Accessibility & contrast

On white

10.52
#52248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#52248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52248D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52248D#FFFFFF#000000##FFFFFF
##52248D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#443F56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52248d;
/* rgb */ color: rgb(82, 36, 141);
/* oklch */ color: oklch(38.7% 0.162 298.4);
Tailwind
colors: {
  custom: {
    50: '#8863af',
    500: '#52248d',
    950: '#000000',
  },
}
SCSS
$custom: #52248d;
$custom-light: #8863af;
$custom-dark: #000000;
JSON
{
  "hex": "#52248d",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 266.286,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38721,
    "c": 0.16242,
    "h": 298.4
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#52248D
secondary
#8DB854
accent
#E3459E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52248D

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

Preview Lab → · Contrast checker → · Palette generator →

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