#52158D#52158D

#52158D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.178 H 300.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#52158D
RGBrgb(82, 21, 141)
HSLhsl(271, 74%, 32%)
HSVhsv(271, 85%, 55%)
CMYKcmyk(41.8%, 85.1%, 0%, 44.7%)
CIE-LABlab(24.49, 49.54, -53.57)
CIE-LCHlch(24.49, 72.97, 312.76°)
OKLaboklab(37.2% 0.0898 -0.1532)
OKLCHoklch(37.2% 0.178 300.4)
XYZxyz(8.5544, 4.2532, 25.5644)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52158D #508D15
analogous
#16158D #52158D #8D158C
triadic
#52158D #8D5215 #158D52
tetradic
#52158D #8D1615 #508D15 #158C8D
square
#52158D #8D1615 #508D15 #158C8D
split-complementary
#52158D #8C8D15 #158D16
monochromatic
#140522 #330D58 #52158D #711DC2 #903BE2

Accessibility & contrast

On white

11.35
#52158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#52158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52158D
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52158D#FFFFFF#000000##FFFFFF
##52158D1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#443853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52158d;
/* rgb */ color: rgb(82, 21, 141);
/* oklch */ color: oklch(37.2% 0.178 300.4);
Tailwind
colors: {
  custom: {
    50: '#895caf',
    500: '#52158d',
    950: '#000000',
  },
}
SCSS
$custom: #52158d;
$custom-light: #895caf;
$custom-dark: #000000;
JSON
{
  "hex": "#52158d",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 270.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37196,
    "c": 0.1776,
    "h": 300.4
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#52158D
secondary
#7EC13D
accent
#F13792
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #52158D

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

Preview Lab → · Contrast checker → · Palette generator →

#52158D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva