#52168C#52168C

#52168C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.176 H 300.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#52168C
RGBrgb(82, 22, 140)
HSLhsl(271, 73%, 32%)
HSVhsv(271, 84%, 55%)
CMYKcmyk(41.4%, 84.3%, 0%, 45.1%)
CIE-LABlab(24.52, 48.95, -52.91)
CIE-LCHlch(24.52, 72.08, 312.77°)
OKLaboklab(37.18% 0.0894 -0.1513)
OKLCHoklch(37.18% 0.176 300.6)
XYZxyz(8.4990, 4.2610, 25.1805)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52168C #508C16
analogous
#17168C #52168C #8C168B
triadic
#52168C #8C5216 #168C52
tetradic
#52168C #8C1716 #508C16 #168B8C
square
#52168C #8C1716 #508C16 #168B8C
split-complementary
#52168C #8B8C16 #168C17
monochromatic
#140522 #330E57 #52168C #711EC1 #903CE0

Accessibility & contrast

On white

11.34
#52168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#52168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52168C
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52168C#FFFFFF#000000##FFFFFF
##52168C1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#443853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52168c;
/* rgb */ color: rgb(82, 22, 140);
/* oklch */ color: oklch(37.2% 0.176 300.6);
Tailwind
colors: {
  custom: {
    50: '#895caf',
    500: '#52168c',
    950: '#000000',
  },
}
SCSS
$custom: #52168c;
$custom-light: #895caf;
$custom-dark: #000000;
JSON
{
  "hex": "#52168c",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 270.508,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37184,
    "c": 0.17576,
    "h": 300.6
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#52168C
secondary
#7EC03E
accent
#F03892
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52168C

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

Preview Lab → · Contrast checker → · Palette generator →

#52168C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva