#52185C#52185C

#52185C is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.125 H 321.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#52185C
RGBrgb(82, 24, 92)
HSLhsl(291, 59%, 23%)
HSVhsv(291, 74%, 36%)
CMYKcmyk(10.9%, 73.9%, 0%, 63.9%)
CIE-LABlab(20.90, 37.07, -27.92)
CIE-LCHlch(20.90, 46.41, 323.02°)
OKLaboklab(33.43% 0.0977 -0.078)
OKLCHoklch(33.43% 0.125 321.4)
XYZxyz(5.7379, 3.2201, 10.4425)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52185C #225C18
analogous
#30185C #52185C #5C1844
triadic
#52185C #5C5218 #185C52
tetradic
#52185C #5C3018 #225C18 #18445C
square
#52185C #5C3018 #225C18 #18445C
split-complementary
#52185C #445C18 #185C30
monochromatic
#160618 #270B2B #52185C #7D258D #A931BD

Accessibility & contrast

On white

12.77
#52185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#52185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52185C
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52185C#FFFFFF#000000##FFFFFF
##52185C1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5E
Deuteranopia (green-blind)
#20345A
Tritanopia (blue-blind)
#532438
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52185c;
/* rgb */ color: rgb(82, 24, 92);
/* oklch */ color: oklch(33.4% 0.125 321.4);
Tailwind
colors: {
  custom: {
    50: '#855b8a',
    500: '#52185c',
    950: '#000000',
  },
}
SCSS
$custom: #52185c;
$custom-light: #855b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#52185c",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 291.176,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33427,
    "c": 0.12503,
    "h": 321.4
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#52185C
secondary
#4A933D
accent
#E2465D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52185C

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

Preview Lab → · Contrast checker → · Palette generator →

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