#52248B#52248B

#52248B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.160 H 299.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#52248B
RGBrgb(82, 36, 139)
HSLhsl(267, 59%, 34%)
HSVhsv(267, 74%, 55%)
CMYKcmyk(41%, 74.1%, 0%, 45.5%)
CIE-LABlab(26.50, 42.73, -49.04)
CIE-LCHlch(26.50, 65.04, 311.07°)
OKLaboklab(38.55% 0.0776 -0.1401)
OKLCHoklch(38.55% 0.16 299)
XYZxyz(8.7696, 4.9196, 24.9086)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52248B #5D8B24
analogous
#242A8B #52248B #86248B
triadic
#52248B #8B5224 #248B52
tetradic
#52248B #8B242A #5D8B24 #248B86
square
#52248B #8B242A #5D8B24 #248B86
split-complementary
#52248B #8B8624 #2A8B24
monochromatic
#190B2A #35175A #52248B #6F31BC #8E56D3

Accessibility & contrast

On white

10.58
#52248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#52248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52248B
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52248B#FFFFFF#000000##FFFFFF
##52248B1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#443E55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52248b;
/* rgb */ color: rgb(82, 36, 139);
/* oklch */ color: oklch(38.5% 0.160 299.0);
Tailwind
colors: {
  custom: {
    50: '#8863ae',
    500: '#52248b',
    950: '#000000',
  },
}
SCSS
$custom: #52248b;
$custom-light: #8863ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52248b",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 266.796,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38548,
    "c": 0.16014,
    "h": 299
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#52248B
secondary
#8BB753
accent
#E2469C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52248B

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

Preview Lab → · Contrast checker → · Palette generator →

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