#52177D#52177D

#52177D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.160 H 305.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#52177D
RGBrgb(82, 23, 125)
HSLhsl(275, 69%, 29%)
HSVhsv(275, 82%, 49%)
CMYKcmyk(34.4%, 81.6%, 0%, 51%)
CIE-LABlab(23.30, 44.96, -45.47)
CIE-LCHlch(23.30, 63.94, 314.67°)
OKLaboklab(35.92% 0.0933 -0.1295)
OKLCHoklch(35.92% 0.16 305.8)
XYZxyz(7.4869, 3.8874, 19.7540)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52177D #427D17
analogous
#1F177D #52177D #7D1775
triadic
#52177D #7D5217 #177D52
tetradic
#52177D #7D1F17 #427D17 #17757D
square
#52177D #7D1F17 #427D17 #17757D
split-complementary
#52177D #757D17 #177D1F
monochromatic
#11051A #300D49 #52177D #7421B1 #9435DA

Accessibility & contrast

On white

11.82
#52177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#52177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52177D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52177D#FFFFFF#000000##FFFFFF
##52177D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4A324A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52177d;
/* rgb */ color: rgb(82, 23, 125);
/* oklch */ color: oklch(35.9% 0.160 305.8);
Tailwind
colors: {
  custom: {
    50: '#875ca3',
    500: '#52177d',
    950: '#000000',
  },
}
SCSS
$custom: #52177d;
$custom-light: #875ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#52177d",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 274.706,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3592,
    "c": 0.15959,
    "h": 305.8
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#52177D
secondary
#6FB23E
accent
#EC3C86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52177D

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

Preview Lab → · Contrast checker → · Palette generator →

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