#52146F#52146F

#52146F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.5% C 0.149 H 312.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#52146F
RGBrgb(82, 20, 111)
HSLhsl(281, 69%, 26%)
HSVhsv(281, 82%, 44%)
CMYKcmyk(26.1%, 82%, 0%, 56.5%)
CIE-LABlab(21.73, 42.85, -39.04)
CIE-LCHlch(21.73, 57.97, 317.67°)
OKLaboklab(34.46% 0.0994 -0.1106)
OKLCHoklch(34.46% 0.149 312)
XYZxyz(6.5985, 3.4420, 15.3526)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52146F #316F14
analogous
#24146F #52146F #6F145E
triadic
#52146F #6F5214 #146F52
tetradic
#52146F #6F2414 #316F14 #145E6F
square
#52146F #6F2414 #316F14 #145E6F
split-complementary
#52146F #5E6F14 #146F24
monochromatic
#13051A #2C0B3B #52146F #781DA3 #9F27D7

Accessibility & contrast

On white

12.44
#52146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#52146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52146F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52146F#FFFFFF#000000##FFFFFF
##52146F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#03356D
Tritanopia (blue-blind)
#4E2A41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52146f;
/* rgb */ color: rgb(82, 20, 111);
/* oklch */ color: oklch(34.5% 0.149 312.0);
Tailwind
colors: {
  custom: {
    50: '#865a99',
    500: '#52146f',
    950: '#000000',
  },
}
SCSS
$custom: #52146f;
$custom-light: #865a99;
$custom-dark: #000000;
JSON
{
  "hex": "#52146f",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 280.879,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34461,
    "c": 0.14867,
    "h": 312
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#52146F
secondary
#5CA639
accent
#EC3C74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52146F

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

Preview Lab → · Contrast checker → · Palette generator →

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