#52157C#52157C

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

Color values

HEX#52157C
RGBrgb(82, 21, 124)
HSLhsl(276, 71%, 28%)
HSVhsv(276, 83%, 49%)
CMYKcmyk(33.9%, 83.1%, 0%, 51.4%)
CIE-LABlab(22.95, 45.47, -45.40)
CIE-LCHlch(22.95, 64.26, 315.05°)
OKLaboklab(35.65% 0.0952 -0.1293)
OKLCHoklch(35.65% 0.161 306.4)
XYZxyz(7.3851, 3.7855, 19.4065)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52157C #3F7C15
analogous
#1E157C #52157C #7C1572
triadic
#52157C #7C5215 #157C52
tetradic
#52157C #7C1E15 #3F7C15 #15727C
square
#52157C #7C1E15 #3F7C15 #15727C
split-complementary
#52157C #727C15 #157C1E
monochromatic
#11041A #2F0C48 #52157C #751EB0 #9630DC

Accessibility & contrast

On white

11.95
#52157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52157C
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52157C#FFFFFF#000000##FFFFFF
##52157C1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#4A3049
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52157c;
/* rgb */ color: rgb(82, 21, 124);
/* oklch */ color: oklch(35.7% 0.161 306.4);
Tailwind
colors: {
  custom: {
    50: '#875ba3',
    500: '#52157c',
    950: '#000000',
  },
}
SCSS
$custom: #52157c;
$custom-light: #875ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#52157c",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 275.534,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35651,
    "c": 0.16056,
    "h": 306.4
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#52157C
secondary
#6CB13C
accent
#EE3A83
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52157C

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

Preview Lab → · Contrast checker → · Palette generator →

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