#52155F#52155F

#52155F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.132 H 319.9°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#52155F
RGBrgb(82, 21, 95)
HSLhsl(289, 64%, 23%)
HSVhsv(289, 78%, 37%)
CMYKcmyk(13.7%, 77.9%, 0%, 62.7%)
CIE-LABlab(20.66, 38.98, -30.30)
CIE-LCHlch(20.66, 49.37, 322.14°)
OKLaboklab(33.32% 0.101 -0.0849)
OKLCHoklch(33.32% 0.132 319.9)
XYZxyz(5.8131, 3.1567, 11.1274)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52155F #225F15
analogous
#2D155F #52155F #5F1547
triadic
#52155F #5F5215 #155F52
tetradic
#52155F #5F2D15 #225F15 #15475F
square
#52155F #5F2D15 #225F15 #15475F
split-complementary
#52155F #475F15 #155F2D
monochromatic
#160619 #270A2D #52155F #7D2091 #A92BC3

Accessibility & contrast

On white

12.87
#52155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#52155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52155F
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52155F#FFFFFF#000000##FFFFFF
##52155F1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#1C345D
Tritanopia (blue-blind)
#522439
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52155f;
/* rgb */ color: rgb(82, 21, 95);
/* oklch */ color: oklch(33.3% 0.132 319.9);
Tailwind
colors: {
  custom: {
    50: '#85598d',
    500: '#52155f',
    950: '#000000',
  },
}
SCSS
$custom: #52155f;
$custom-light: #85598d;
$custom-dark: #000000;
JSON
{
  "hex": "#52155f",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 289.459,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33319,
    "c": 0.13192,
    "h": 319.9
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#52155F
secondary
#4A963A
accent
#E7415E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52155F

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

Preview Lab → · Contrast checker → · Palette generator →

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