#52177A#52177A

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

Color values

HEX#52177A
RGBrgb(82, 23, 122)
HSLhsl(276, 68%, 28%)
HSVhsv(276, 81%, 48%)
CMYKcmyk(32.8%, 81.1%, 0%, 52.2%)
CIE-LABlab(23.04, 44.24, -43.98)
CIE-LCHlch(23.04, 62.38, 315.17°)
OKLaboklab(35.66% 0.0941 -0.1251)
OKLCHoklch(35.66% 0.157 306.9)
XYZxyz(7.2982, 3.8119, 18.7599)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52177A #3F7A17
analogous
#21177A #52177A #7A1770
triadic
#52177A #7A5217 #177A52
tetradic
#52177A #7A2117 #3F7A17 #17707A
square
#52177A #7A2117 #3F7A17 #17707A
split-complementary
#52177A #707A17 #177A21
monochromatic
#11051A #2F0D47 #52177A #7521AD #9633D9

Accessibility & contrast

On white

11.92
#52177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#52177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52177A
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52177A#FFFFFF#000000##FFFFFF
##52177A1.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)
#00357D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#4B3048
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52177a;
/* rgb */ color: rgb(82, 23, 122);
/* oklch */ color: oklch(35.7% 0.157 306.9);
Tailwind
colors: {
  custom: {
    50: '#875ca1',
    500: '#52177a',
    950: '#000000',
  },
}
SCSS
$custom: #52177a;
$custom-light: #875ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#52177a",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 275.758,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35661,
    "c": 0.15654,
    "h": 306.9
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#52177A
secondary
#6CAF3E
accent
#EB3D83
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52177A

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

Preview Lab → · Contrast checker → · Palette generator →

#52177A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva