#52148D#52148D

#52148D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.178 H 300.5°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#52148D
RGBrgb(82, 20, 141)
HSLhsl(271, 75%, 32%)
HSVhsv(271, 86%, 55%)
CMYKcmyk(41.8%, 85.8%, 0%, 44.7%)
CIE-LABlab(24.38, 49.88, -53.76)
CIE-LCHlch(24.38, 73.33, 312.85°)
OKLaboklab(37.12% 0.0904 -0.1538)
OKLCHoklch(37.12% 0.178 300.5)
XYZxyz(8.5363, 4.2172, 25.5584)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52148D #4F8D14
analogous
#16148D #52148D #8D148C
triadic
#52148D #8D5214 #148D52
tetradic
#52148D #8D1614 #4F8D14 #148C8D
square
#52148D #8D1614 #4F8D14 #148C8D
split-complementary
#52148D #8C8D14 #148D16
monochromatic
#140522 #330C57 #52148D #711CC3 #9039E3

Accessibility & contrast

On white

11.39
#52148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#52148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52148D
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52148D#FFFFFF#000000##FFFFFF
##52148D1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#443853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52148d;
/* rgb */ color: rgb(82, 20, 141);
/* oklch */ color: oklch(37.1% 0.178 300.5);
Tailwind
colors: {
  custom: {
    50: '#895caf',
    500: '#52148d',
    950: '#000000',
  },
}
SCSS
$custom: #52148d;
$custom-light: #895caf;
$custom-dark: #000000;
JSON
{
  "hex": "#52148d",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 270.744,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37117,
    "c": 0.17842,
    "h": 300.5
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#52148D
secondary
#7DC13C
accent
#F23692
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #52148D

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

Preview Lab → · Contrast checker → · Palette generator →

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