#52158F#52158F

#52158F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.180 H 299.7°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#52158F
RGBrgb(82, 21, 143)
HSLhsl(270, 74%, 32%)
HSVhsv(270, 85%, 56%)
CMYKcmyk(42.7%, 85.3%, 0%, 43.9%)
CIE-LABlab(24.68, 50.03, -54.50)
CIE-LCHlch(24.68, 73.98, 312.55°)
OKLaboklab(37.38% 0.0891 -0.156)
OKLCHoklch(37.38% 0.18 299.7)
XYZxyz(8.7045, 4.3132, 26.3552)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52158F #528F15
analogous
#15158F #52158F #8F158F
triadic
#52158F #8F5215 #158F52
tetradic
#52158F #8F1515 #528F15 #158F8F
square
#52158F #8F1515 #528F15 #158F8F
split-complementary
#52158F #8F8F15 #158F15
monochromatic
#150524 #330D5A #52158F #711DC4 #8F3CE2

Accessibility & contrast

On white

11.27
#52158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52158F
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52158F#FFFFFF#000000##FFFFFF
##52158F1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#433954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52158f;
/* rgb */ color: rgb(82, 21, 143);
/* oklch */ color: oklch(37.4% 0.180 299.7);
Tailwind
colors: {
  custom: {
    50: '#895cb1',
    500: '#52158f',
    950: '#000000',
  },
}
SCSS
$custom: #52158f;
$custom-light: #895cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#52158f",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 270,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37384,
    "c": 0.17962,
    "h": 299.7
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#52158F
secondary
#80C23E
accent
#F13794
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #52158F

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

Preview Lab → · Contrast checker → · Palette generator →

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