#52148C#52148C

#52148C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.177 H 300.8°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#52148C
RGBrgb(82, 20, 140)
HSLhsl(271, 75%, 31%)
HSVhsv(271, 86%, 55%)
CMYKcmyk(41.4%, 85.7%, 0%, 45.1%)
CIE-LABlab(24.28, 49.64, -53.29)
CIE-LCHlch(24.28, 72.83, 312.97°)
OKLaboklab(37.02% 0.0908 -0.1524)
OKLCHoklch(37.02% 0.177 300.8)
XYZxyz(8.4623, 4.1875, 25.1683)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52148C #4E8C14
analogous
#16148C #52148C #8C148A
triadic
#52148C #8C5214 #148C52
tetradic
#52148C #8C1614 #4E8C14 #148A8C
square
#52148C #8C1614 #4E8C14 #148A8C
split-complementary
#52148C #8A8C14 #148C16
monochromatic
#130521 #330C56 #52148C #711CC2 #9038E3

Accessibility & contrast

On white

11.43
#52148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52148C
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52148C#FFFFFF#000000##FFFFFF
##52148C1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#443752
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52148c;
/* rgb */ color: rgb(82, 20, 140);
/* oklch */ color: oklch(37.0% 0.177 300.8);
Tailwind
colors: {
  custom: {
    50: '#895caf',
    500: '#52148c',
    950: '#000000',
  },
}
SCSS
$custom: #52148c;
$custom-light: #895caf;
$custom-dark: #000000;
JSON
{
  "hex": "#52148c",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 271,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37022,
    "c": 0.17741,
    "h": 300.8
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#52148C
secondary
#7CC03C
accent
#F23691
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #52148C

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

Preview Lab → · Contrast checker → · Palette generator →

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