#52157D#52157D

#52157D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.162 H 306.0°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#52157D
RGBrgb(82, 21, 125)
HSLhsl(275, 71%, 29%)
HSVhsv(275, 83%, 49%)
CMYKcmyk(34.4%, 83.2%, 0%, 51%)
CIE-LABlab(23.04, 45.71, -45.89)
CIE-LCHlch(23.04, 64.77, 314.89°)
OKLaboklab(35.74% 0.0949 -0.1307)
OKLCHoklch(35.74% 0.162 306)
XYZxyz(7.4487, 3.8109, 19.7412)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52157D #407D15
analogous
#1E157D #52157D #7D1574
triadic
#52157D #7D5215 #157D52
tetradic
#52157D #7D1E15 #407D15 #15747D
square
#52157D #7D1E15 #407D15 #15747D
split-complementary
#52157D #747D15 #157D1E
monochromatic
#11041A #300C49 #52157D #741EB1 #9530DC

Accessibility & contrast

On white

11.92
#52157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#52157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52157D
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52157D#FFFFFF#000000##FFFFFF
##52157D1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#4A314A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52157d;
/* rgb */ color: rgb(82, 21, 125);
/* oklch */ color: oklch(35.7% 0.162 306.0);
Tailwind
colors: {
  custom: {
    50: '#885ba3',
    500: '#52157d',
    950: '#000000',
  },
}
SCSS
$custom: #52157d;
$custom-light: #885ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#52157d",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 275.192,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.16156,
    "h": 306
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#52157D
secondary
#6DB23C
accent
#EE3A84
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52157D

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

Preview Lab → · Contrast checker → · Palette generator →

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