#52177B#52177B

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

Color values

HEX#52177B
RGBrgb(82, 23, 123)
HSLhsl(275, 68%, 29%)
HSVhsv(275, 81%, 48%)
CMYKcmyk(33.3%, 81.3%, 0%, 51.8%)
CIE-LABlab(23.12, 44.48, -44.48)
CIE-LCHlch(23.12, 62.90, 315.00°)
OKLaboklab(35.75% 0.0938 -0.1266)
OKLCHoklch(35.75% 0.158 306.5)
XYZxyz(7.3604, 3.8368, 19.0879)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52177B #407B17
analogous
#20177B #52177B #7B1772
triadic
#52177B #7B5217 #177B52
tetradic
#52177B #7B2017 #407B17 #17727B
square
#52177B #7B2017 #407B17 #17727B
split-complementary
#52177B #727B17 #177B20
monochromatic
#11051A #300D47 #52177B #7421AF #9533D9

Accessibility & contrast

On white

11.88
#52177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#52177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52177B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52177B#FFFFFF#000000##FFFFFF
##52177B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52177b;
/* rgb */ color: rgb(82, 23, 123);
/* oklch */ color: oklch(35.7% 0.158 306.5);
Tailwind
colors: {
  custom: {
    50: '#875ca2',
    500: '#52177b',
    950: '#000000',
  },
}
SCSS
$custom: #52177b;
$custom-light: #875ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#52177b",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 275.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35747,
    "c": 0.15755,
    "h": 306.5
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#52177B
secondary
#6DB03E
accent
#EB3C84
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52177B

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

Preview Lab → · Contrast checker → · Palette generator →

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