#52177F#52177F

#52177F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.162 H 305.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#52177F
RGBrgb(82, 23, 127)
HSLhsl(274, 69%, 29%)
HSVhsv(274, 82%, 50%)
CMYKcmyk(35.4%, 81.9%, 0%, 50.2%)
CIE-LABlab(23.47, 45.44, -46.46)
CIE-LCHlch(23.47, 64.98, 314.36°)
OKLaboklab(36.1% 0.0927 -0.1324)
OKLCHoklch(36.1% 0.162 305)
XYZxyz(7.6160, 3.9390, 20.4336)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52177F #447F17
analogous
#1E177F #52177F #7F1778
triadic
#52177F #7F5217 #177F52
tetradic
#52177F #7F1E17 #447F17 #17787F
square
#52177F #7F1E17 #447F17 #17787F
split-complementary
#52177F #787F17 #177F1E
monochromatic
#11051A #310E4B #52177F #7320B3 #9336DB

Accessibility & contrast

On white

11.75
#52177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#52177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52177F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52177F#FFFFFF#000000##FFFFFF
##52177F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#49334B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52177f;
/* rgb */ color: rgb(82, 23, 127);
/* oklch */ color: oklch(36.1% 0.162 305.0);
Tailwind
colors: {
  custom: {
    50: '#885ca5',
    500: '#52177f',
    950: '#000000',
  },
}
SCSS
$custom: #52177f;
$custom-light: #885ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#52177f",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 274.038,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36095,
    "c": 0.16163,
    "h": 305
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#52177F
secondary
#71B43E
accent
#EC3C88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52177F

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

Preview Lab → · Contrast checker → · Palette generator →

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