#52175F#52175F

#52175F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.129 H 319.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#52175F
RGBrgb(82, 23, 95)
HSLhsl(289, 61%, 23%)
HSVhsv(289, 76%, 37%)
CMYKcmyk(13.7%, 75.8%, 0%, 62.7%)
CIE-LABlab(20.95, 38.14, -29.83)
CIE-LCHlch(20.95, 48.42, 321.97°)
OKLaboklab(33.53% 0.0987 -0.0836)
OKLCHoklch(33.53% 0.129 319.8)
XYZxyz(5.8514, 3.2331, 11.1401)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52175F #245F17
analogous
#2E175F #52175F #5F1748
triadic
#52175F #5F5217 #175F52
tetradic
#52175F #5F2E17 #245F17 #17485F
square
#52175F #5F2E17 #245F17 #17485F
split-complementary
#52175F #485F17 #175F2E
monochromatic
#150619 #270B2E #52175F #7D2390 #A72FC2

Accessibility & contrast

On white

12.75
#52175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#52175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52175F
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52175F#FFFFFF#000000##FFFFFF
##52175F1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#1D345D
Tritanopia (blue-blind)
#522539
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52175f;
/* rgb */ color: rgb(82, 23, 95);
/* oklch */ color: oklch(33.5% 0.129 319.8);
Tailwind
colors: {
  custom: {
    50: '#855a8d',
    500: '#52175f',
    950: '#000000',
  },
}
SCSS
$custom: #52175f;
$custom-light: #855a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#52175f",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 289.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33529,
    "c": 0.12934,
    "h": 319.8
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#52175F
secondary
#4C963C
accent
#E44461
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52175F

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

Preview Lab → · Contrast checker → · Palette generator →

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