#52145E#52145E

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

Color values

HEX#52145E
RGBrgb(82, 20, 94)
HSLhsl(290, 65%, 22%)
HSVhsv(290, 79%, 37%)
CMYKcmyk(12.8%, 78.7%, 0%, 63.1%)
CIE-LABlab(20.45, 39.17, -29.97)
CIE-LCHlch(20.45, 49.32, 322.58°)
OKLaboklab(33.15% 0.1021 -0.084)
OKLCHoklch(33.15% 0.132 320.6)
XYZxyz(5.7500, 3.1026, 10.8835)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52145E #205E14
analogous
#2D145E #52145E #5E1445
triadic
#52145E #5E5214 #145E52
tetradic
#52145E #5E2D14 #205E14 #14455E
square
#52145E #5E2D14 #205E14 #14455E
split-complementary
#52145E #455E14 #145E2D
monochromatic
#160519 #26092C #52145E #7E1F90 #AA29C3

Accessibility & contrast

On white

12.96
#52145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52145E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52145E#FFFFFF#000000##FFFFFF
##52145E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52145e;
/* rgb */ color: rgb(82, 20, 94);
/* oklch */ color: oklch(33.1% 0.132 320.6);
Tailwind
colors: {
  custom: {
    50: '#85598c',
    500: '#52145e',
    950: '#000000',
  },
}
SCSS
$custom: #52145e;
$custom-light: #85598c;
$custom-dark: #000000;
JSON
{
  "hex": "#52145e",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 290.27,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33147,
    "c": 0.13219,
    "h": 320.6
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#52145E
secondary
#479638
accent
#E8405B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52145E

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

Preview Lab → · Contrast checker → · Palette generator →

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