#52167D#52167D

#52167D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.161 H 305.9°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#52167D
RGBrgb(82, 22, 125)
HSLhsl(275, 70%, 29%)
HSVhsv(275, 82%, 49%)
CMYKcmyk(34.4%, 82.4%, 0%, 51%)
CIE-LABlab(23.16, 45.34, -45.69)
CIE-LCHlch(23.16, 64.36, 314.78°)
OKLaboklab(35.83% 0.0941 -0.1301)
OKLCHoklch(35.83% 0.161 305.9)
XYZxyz(7.4674, 3.8484, 19.7475)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52167D #417D16
analogous
#1E167D #52167D #7D1675
triadic
#52167D #7D5216 #167D52
tetradic
#52167D #7D1E16 #417D16 #16757D
square
#52167D #7D1E16 #417D16 #16757D
split-complementary
#52167D #757D16 #167D1E
monochromatic
#11051A #300D49 #52167D #741FB1 #9532DB

Accessibility & contrast

On white

11.87
#52167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#52167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52167D
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52167D#FFFFFF#000000##FFFFFF
##52167D1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#4A314A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52167d;
/* rgb */ color: rgb(82, 22, 125);
/* oklch */ color: oklch(35.8% 0.161 305.9);
Tailwind
colors: {
  custom: {
    50: '#885ca3',
    500: '#52167d',
    950: '#000000',
  },
}
SCSS
$custom: #52167d;
$custom-light: #885ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#52167d",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 274.951,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.16059,
    "h": 305.9
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#52167D
secondary
#6EB23D
accent
#ED3B85
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52167D

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

Preview Lab → · Contrast checker → · Palette generator →

#52167D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva