#52145C#52145C

#52145C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.130 H 321.7°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#52145C
RGBrgb(82, 20, 92)
HSLhsl(292, 64%, 22%)
HSVhsv(292, 78%, 36%)
CMYKcmyk(10.9%, 78.3%, 0%, 63.9%)
CIE-LABlab(20.31, 38.76, -28.87)
CIE-LCHlch(20.31, 48.32, 323.32°)
OKLaboklab(33% 0.1023 -0.0807)
OKLCHoklch(33% 0.13 321.7)
XYZxyz(5.6614, 3.0672, 10.4170)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52145C #1E5C14
analogous
#2E145C #52145C #5C1442
triadic
#52145C #5C5214 #145C52
tetradic
#52145C #5C2E14 #1E5C14 #14425C
square
#52145C #5C2E14 #1E5C14 #14425C
split-complementary
#52145C #425C14 #145C2E
monochromatic
#160519 #25092A #52145C #7F1F8E #AC2AC1

Accessibility & contrast

On white

13.02
#52145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#52145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52145C
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52145C#FFFFFF#000000##FFFFFF
##52145C1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#1D335A
Tritanopia (blue-blind)
#532237
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52145c;
/* rgb */ color: rgb(82, 20, 92);
/* oklch */ color: oklch(33.0% 0.130 321.7);
Tailwind
colors: {
  custom: {
    50: '#85598a',
    500: '#52145c',
    950: '#000000',
  },
}
SCSS
$custom: #52145c;
$custom-light: #85598a;
$custom-dark: #000000;
JSON
{
  "hex": "#52145c",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 291.667,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33003,
    "c": 0.13029,
    "h": 321.7
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#52145C
secondary
#459438
accent
#E74158
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52145C

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

Preview Lab → · Contrast checker → · Palette generator →

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