#52155A#52155A

#52155A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.127 H 322.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#52155A
RGBrgb(82, 21, 90)
HSLhsl(293, 62%, 22%)
HSVhsv(293, 77%, 35%)
CMYKcmyk(8.9%, 76.7%, 0%, 64.7%)
CIE-LABlab(20.32, 37.94, -27.53)
CIE-LCHlch(20.32, 46.87, 324.04°)
OKLaboklab(32.96% 0.1013 -0.0768)
OKLCHoklch(32.96% 0.127 322.8)
XYZxyz(5.5931, 3.0687, 9.9686)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52155A #1D5A15
analogous
#30155A #52155A #5A1540
triadic
#52155A #5A5215 #155A52
tetradic
#52155A #5A3015 #1D5A15 #15405A
square
#52155A #5A3015 #1D5A15 #15405A
split-complementary
#52155A #405A15 #155A30
monochromatic
#170619 #250928 #52155A #7F218C #AC2CBD

Accessibility & contrast

On white

13.01
#52155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#52155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52155A
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52155A#FFFFFF#000000##FFFFFF
##52155A1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#203358
Tritanopia (blue-blind)
#532136
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52155a;
/* rgb */ color: rgb(82, 21, 90);
/* oklch */ color: oklch(33.0% 0.127 322.8);
Tailwind
colors: {
  custom: {
    50: '#855989',
    500: '#52155a',
    950: '#000000',
  },
}
SCSS
$custom: #52155a;
$custom-light: #855989;
$custom-dark: #000000;
JSON
{
  "hex": "#52155a",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 293.043,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32964,
    "c": 0.12713,
    "h": 322.8
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#52155A
secondary
#449239
accent
#E54355
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52155A

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

Preview Lab → · Contrast checker → · Palette generator →

#52155A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva