#52145D#52145D

#52145D is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.131 H 321.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#52145D
RGBrgb(82, 20, 93)
HSLhsl(291, 65%, 22%)
HSVhsv(291, 78%, 36%)
CMYKcmyk(11.8%, 78.5%, 0%, 63.5%)
CIE-LABlab(20.38, 38.96, -29.42)
CIE-LCHlch(20.38, 48.82, 322.94°)
OKLaboklab(33.07% 0.1022 -0.0824)
OKLCHoklch(33.07% 0.131 321.1)
XYZxyz(5.7054, 3.0848, 10.6487)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52145D #1F5D14
analogous
#2E145D #52145D #5D1444
triadic
#52145D #5D5214 #145D52
tetradic
#52145D #5D2E14 #1F5D14 #14445D
square
#52145D #5D2E14 #1F5D14 #14445D
split-complementary
#52145D #445D14 #145D2E
monochromatic
#160519 #26092B #52145D #7E1F8F #AB2AC2

Accessibility & contrast

On white

12.99
#52145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52145D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52145D#FFFFFF#000000##FFFFFF
##52145D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52145d;
/* rgb */ color: rgb(82, 20, 93);
/* oklch */ color: oklch(33.1% 0.131 321.1);
Tailwind
colors: {
  custom: {
    50: '#85598b',
    500: '#52145d',
    950: '#000000',
  },
}
SCSS
$custom: #52145d;
$custom-light: #85598b;
$custom-dark: #000000;
JSON
{
  "hex": "#52145d",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 290.959,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33075,
    "c": 0.13124,
    "h": 321.1
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#52145D
secondary
#469538
accent
#E84059
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52145D

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

Preview Lab → · Contrast checker → · Palette generator →

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