#52145F#52145F

#52145F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.133 H 320.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#52145F
RGBrgb(82, 20, 95)
HSLhsl(290, 65%, 23%)
HSVhsv(290, 79%, 37%)
CMYKcmyk(13.7%, 78.9%, 0%, 62.7%)
CIE-LABlab(20.52, 39.38, -30.52)
CIE-LCHlch(20.52, 49.82, 322.22°)
OKLaboklab(33.22% 0.102 -0.0856)
OKLCHoklch(33.22% 0.133 320)
XYZxyz(5.7951, 3.1207, 11.1214)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52145F #215F14
analogous
#2D145F #52145F #5F1446
triadic
#52145F #5F5214 #145F52
tetradic
#52145F #5F2D14 #215F14 #14465F
square
#52145F #5F2D14 #215F14 #14465F
split-complementary
#52145F #465F14 #145F2D
monochromatic
#160519 #26092C #52145F #7E1F92 #A929C4

Accessibility & contrast

On white

12.93
#52145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#52145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52145F
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52145F#FFFFFF#000000##FFFFFF
##52145F1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#1B345D
Tritanopia (blue-blind)
#522338
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52145f;
/* rgb */ color: rgb(82, 20, 95);
/* oklch */ color: oklch(33.2% 0.133 320.0);
Tailwind
colors: {
  custom: {
    50: '#86598d',
    500: '#52145f',
    950: '#000000',
  },
}
SCSS
$custom: #52145f;
$custom-light: #86598d;
$custom-dark: #000000;
JSON
{
  "hex": "#52145f",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 289.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.13314,
    "h": 320
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#52145F
secondary
#499738
accent
#E8405D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52145F

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

Preview Lab → · Contrast checker → · Palette generator →

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