#52167B#52167B

#52167B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.159 H 306.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#52167B
RGBrgb(82, 22, 123)
HSLhsl(276, 70%, 28%)
HSVhsv(276, 82%, 48%)
CMYKcmyk(33.3%, 82.1%, 0%, 51.8%)
CIE-LABlab(22.99, 44.87, -44.69)
CIE-LCHlch(22.99, 63.33, 315.11°)
OKLaboklab(35.65% 0.0947 -0.1272)
OKLCHoklch(35.65% 0.159 306.7)
XYZxyz(7.3410, 3.7978, 19.0814)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52167B #3F7B16
analogous
#20167B #52167B #7B1671
triadic
#52167B #7B5216 #167B52
tetradic
#52167B #7B2016 #3F7B16 #16717B
square
#52167B #7B2016 #3F7B16 #16717B
split-complementary
#52167B #717B16 #167B20
monochromatic
#11051A #2F0D47 #52167B #751FAF #9631DA

Accessibility & contrast

On white

11.93
#52167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#52167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52167B
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52167B#FFFFFF#000000##FFFFFF
##52167B1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#4B3049
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52167b;
/* rgb */ color: rgb(82, 22, 123);
/* oklch */ color: oklch(35.7% 0.159 306.7);
Tailwind
colors: {
  custom: {
    50: '#875ba2',
    500: '#52167b',
    950: '#000000',
  },
}
SCSS
$custom: #52167b;
$custom-light: #875ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#52167b",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 275.644,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.15857,
    "h": 306.7
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#52167B
secondary
#6CB03D
accent
#EC3B83
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52167B

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

Preview Lab → · Contrast checker → · Palette generator →

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