#52148F#52148F

#52148F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.180 H 299.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#52148F
RGBrgb(82, 20, 143)
HSLhsl(270, 75%, 32%)
HSVhsv(270, 86%, 56%)
CMYKcmyk(42.7%, 86%, 0%, 43.9%)
CIE-LABlab(24.57, 50.36, -54.69)
CIE-LCHlch(24.57, 74.34, 312.64°)
OKLaboklab(37.31% 0.0897 -0.1565)
OKLCHoklch(37.31% 0.18 299.8)
XYZxyz(8.6865, 4.2772, 26.3492)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52148F #518F14
analogous
#15148F #52148F #8F148F
triadic
#52148F #8F5214 #148F52
tetradic
#52148F #8F1514 #518F14 #148F8F
square
#52148F #8F1514 #518F14 #148F8F
split-complementary
#52148F #8F8F14 #148F15
monochromatic
#140524 #330C59 #52148F #711CC5 #8F3AE3

Accessibility & contrast

On white

11.32
#52148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52148F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52148F#FFFFFF#000000##FFFFFF
##52148F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#433954
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52148f;
/* rgb */ color: rgb(82, 20, 143);
/* oklch */ color: oklch(37.3% 0.180 299.8);
Tailwind
colors: {
  custom: {
    50: '#8a5cb1',
    500: '#52148f',
    950: '#000000',
  },
}
SCSS
$custom: #52148f;
$custom-light: #8a5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#52148f",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 270.244,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37306,
    "c": 0.1804,
    "h": 299.8
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#52148F
secondary
#7FC33C
accent
#F23693
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #52148F

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

Preview Lab → · Contrast checker → · Palette generator →

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