#52135C#52135C

#52135C is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.132 H 321.8°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#52135C
RGBrgb(82, 19, 92)
HSLhsl(292, 66%, 22%)
HSVhsv(292, 79%, 36%)
CMYKcmyk(10.9%, 79.3%, 0%, 63.9%)
CIE-LABlab(20.17, 39.15, -29.09)
CIE-LCHlch(20.17, 48.77, 323.39°)
OKLaboklab(32.91% 0.1033 -0.0814)
OKLCHoklch(32.91% 0.132 321.8)
XYZxyz(5.6441, 3.0326, 10.4112)
Luminance0.0303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52135C #1D5C13
analogous
#2E135C #52135C #5C1342
triadic
#52135C #5C5213 #135C52
tetradic
#52135C #5C2E13 #1D5C13 #13425C
square
#52135C #5C2E13 #1D5C13 #13425C
split-complementary
#52135C #425C13 #135C2E
monochromatic
#170519 #250929 #52135C #7F1D8F #AC28C1

Accessibility & contrast

On white

13.07
#52135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#52135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52135C
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52135C#FFFFFF#000000##FFFFFF
##52135C1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#1D335A
Tritanopia (blue-blind)
#532136
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52135c;
/* rgb */ color: rgb(82, 19, 92);
/* oklch */ color: oklch(32.9% 0.132 321.8);
Tailwind
colors: {
  custom: {
    50: '#85588a',
    500: '#52135c',
    950: '#000000',
  },
}
SCSS
$custom: #52135c;
$custom-light: #85588a;
$custom-dark: #000000;
JSON
{
  "hex": "#52135c",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 291.781,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32906,
    "c": 0.13151,
    "h": 321.8
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#52135C
secondary
#449437
accent
#E93F56
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52135C

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

Preview Lab → · Contrast checker → · Palette generator →

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