#52185D#52185D

#52185D is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.126 H 320.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#52185D
RGBrgb(82, 24, 93)
HSLhsl(290, 59%, 23%)
HSVhsv(290, 74%, 36%)
CMYKcmyk(11.8%, 74.2%, 0%, 63.5%)
CIE-LABlab(20.97, 37.28, -28.47)
CIE-LCHlch(20.97, 46.91, 322.63°)
OKLaboklab(33.5% 0.0977 -0.0796)
OKLCHoklch(33.5% 0.126 320.8)
XYZxyz(5.7819, 3.2377, 10.6742)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52185D #235D18
analogous
#2F185D #52185D #5D1845
triadic
#52185D #5D5218 #185D52
tetradic
#52185D #5D2F18 #235D18 #18455D
square
#52185D #5D2F18 #235D18 #18455D
split-complementary
#52185D #455D18 #185D2F
monochromatic
#150618 #270B2C #52185D #7D258E #A831BE

Accessibility & contrast

On white

12.75
#52185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#52185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52185D
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52185D#FFFFFF#000000##FFFFFF
##52185D1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#1F345B
Tritanopia (blue-blind)
#532438
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52185d;
/* rgb */ color: rgb(82, 24, 93);
/* oklch */ color: oklch(33.5% 0.126 320.8);
Tailwind
colors: {
  custom: {
    50: '#855b8b',
    500: '#52185d',
    950: '#000000',
  },
}
SCSS
$custom: #52185d;
$custom-light: #855b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#52185d",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 290.435,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33497,
    "c": 0.12603,
    "h": 320.8
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#52185D
secondary
#4B933D
accent
#E2465F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52185D

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

Preview Lab → · Contrast checker → · Palette generator →

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