#52185E#52185E

#52185E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.127 H 320.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#52185E
RGBrgb(82, 24, 94)
HSLhsl(290, 59%, 23%)
HSVhsv(290, 74%, 37%)
CMYKcmyk(12.8%, 74.5%, 0%, 63.1%)
CIE-LABlab(21.04, 37.49, -29.03)
CIE-LCHlch(21.04, 47.42, 322.25°)
OKLaboklab(33.57% 0.0976 -0.0812)
OKLCHoklch(33.57% 0.127 320.2)
XYZxyz(5.8264, 3.2555, 10.9090)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52185E #245E18
analogous
#2F185E #52185E #5E1847
triadic
#52185E #5E5218 #185E52
tetradic
#52185E #5E2F18 #245E18 #18475E
square
#52185E #5E2F18 #245E18 #18475E
split-complementary
#52185E #475E18 #185E2F
monochromatic
#150618 #270C2D #52185E #7D248F #A731C0

Accessibility & contrast

On white

12.72
#52185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52185E
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52185E#FFFFFF#000000##FFFFFF
##52185E1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#1E355C
Tritanopia (blue-blind)
#522539
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52185e;
/* rgb */ color: rgb(82, 24, 94);
/* oklch */ color: oklch(33.6% 0.127 320.2);
Tailwind
colors: {
  custom: {
    50: '#855b8c',
    500: '#52185e',
    950: '#000000',
  },
}
SCSS
$custom: #52185e;
$custom-light: #855b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#52185e",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 289.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.12702,
    "h": 320.2
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#52185E
secondary
#4C943D
accent
#E34560
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52185E

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

Preview Lab → · Contrast checker → · Palette generator →

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