#52157B#52157B

#52157B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.160 H 306.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#52157B
RGBrgb(82, 21, 123)
HSLhsl(276, 71%, 28%)
HSVhsv(276, 83%, 48%)
CMYKcmyk(33.3%, 82.9%, 0%, 51.8%)
CIE-LABlab(22.86, 45.24, -44.90)
CIE-LCHlch(22.86, 63.74, 315.21°)
OKLaboklab(35.56% 0.0955 -0.1278)
OKLCHoklch(35.56% 0.16 306.8)
XYZxyz(7.3222, 3.7603, 19.0751)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52157B #3E7B15
analogous
#1F157B #52157B #7B1571
triadic
#52157B #7B5215 #157B52
tetradic
#52157B #7B1F15 #3E7B15 #15717B
square
#52157B #7B1F15 #3E7B15 #15717B
split-complementary
#52157B #717B15 #157B1F
monochromatic
#11041A #2F0C47 #52157B #751EAF #962FDB

Accessibility & contrast

On white

11.99
#52157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#52157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52157B
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52157B#FFFFFF#000000##FFFFFF
##52157B1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#4B3049
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52157b;
/* rgb */ color: rgb(82, 21, 123);
/* oklch */ color: oklch(35.6% 0.160 306.8);
Tailwind
colors: {
  custom: {
    50: '#875ba2',
    500: '#52157b',
    950: '#000000',
  },
}
SCSS
$custom: #52157b;
$custom-light: #875ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#52157b",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 275.882,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35564,
    "c": 0.15956,
    "h": 306.8
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#52157B
secondary
#6AB03B
accent
#EE3A82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52157B

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

Preview Lab → · Contrast checker → · Palette generator →

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