#52169F#52169F

#52169F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.195 H 295.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#52169F
RGBrgb(82, 22, 159)
HSLhsl(266, 76%, 35%)
HSVhsv(266, 86%, 62%)
CMYKcmyk(48.4%, 86.2%, 0%, 37.6%)
CIE-LABlab(26.36, 53.62, -61.58)
CIE-LCHlch(26.36, 81.66, 311.05°)
OKLaboklab(39.02% 0.0824 -0.1767)
OKLCHoklch(39.02% 0.195 295)
XYZxyz(10.0229, 4.8706, 33.2062)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52169F #639F16
analogous
#161F9F #52169F #96169F
triadic
#52169F #9F5216 #169F52
tetradic
#52169F #9F161F #639F16 #169F96
square
#52169F #9F161F #639F16 #169F96
split-complementary
#52169F #9F9616 #1F9F16
monochromatic
#1B0733 #360F69 #52169F #6E1DD5 #8E4AE6

Accessibility & contrast

On white

10.64
#52169F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#52169F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52169F
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52169F#FFFFFF#000000##FFFFFF
##52169F1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#3B405E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52169f;
/* rgb */ color: rgb(82, 22, 159);
/* oklch */ color: oklch(39.0% 0.195 295.0);
Tailwind
colors: {
  custom: {
    50: '#8b5ebd',
    500: '#52169f',
    950: '#000000',
  },
}
SCSS
$custom: #52169f;
$custom-light: #8b5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#52169f",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 159
  },
  "hsl": {
    "h": 266.277,
    "s": 75.691,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39015,
    "c": 0.195,
    "h": 295
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#52169F
secondary
#90C74A
accent
#F236A0
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #52169F

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

Preview Lab → · Contrast checker → · Palette generator →

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