#52168F#52168F

#52168F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.179 H 299.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#52168F
RGBrgb(82, 22, 143)
HSLhsl(270, 73%, 32%)
HSVhsv(270, 85%, 56%)
CMYKcmyk(42.7%, 84.6%, 0%, 43.9%)
CIE-LABlab(24.80, 49.68, -54.31)
CIE-LCHlch(24.80, 73.61, 312.45°)
OKLaboklab(37.47% 0.0884 -0.1554)
OKLCHoklch(37.47% 0.179 299.6)
XYZxyz(8.7232, 4.3507, 26.3615)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52168F #538F16
analogous
#16178F #52168F #8E168F
triadic
#52168F #8F5216 #168F52
tetradic
#52168F #8F1617 #538F16 #168F8E
square
#52168F #8F1617 #538F16 #168F8E
split-complementary
#52168F #8F8E16 #178F16
monochromatic
#150625 #340E5A #52168F #701EC4 #8F3EE1

Accessibility & contrast

On white

11.23
#52168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52168F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52168F#FFFFFF#000000##FFFFFF
##52168F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#433954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52168f;
/* rgb */ color: rgb(82, 22, 143);
/* oklch */ color: oklch(37.5% 0.179 299.6);
Tailwind
colors: {
  custom: {
    50: '#895db1',
    500: '#52168f',
    950: '#000000',
  },
}
SCSS
$custom: #52168f;
$custom-light: #895db1;
$custom-dark: #000000;
JSON
{
  "hex": "#52168f",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 269.752,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37466,
    "c": 0.1788,
    "h": 299.6
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#52168F
secondary
#81C13F
accent
#F03895
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #52168F

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

Preview Lab → · Contrast checker → · Palette generator →

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