#52167C#52167C

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

Color values

HEX#52167C
RGBrgb(82, 22, 124)
HSLhsl(275, 70%, 29%)
HSVhsv(275, 82%, 49%)
CMYKcmyk(33.9%, 82.3%, 0%, 51.4%)
CIE-LABlab(23.08, 45.10, -45.19)
CIE-LCHlch(23.08, 63.85, 314.94°)
OKLaboklab(35.74% 0.0944 -0.1287)
OKLCHoklch(35.74% 0.16 306.3)
XYZxyz(7.4039, 3.8230, 19.4127)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52167C #407C16
analogous
#1F167C #52167C #7C1673
triadic
#52167C #7C5216 #167C52
tetradic
#52167C #7C1F16 #407C16 #16737C
square
#52167C #7C1F16 #407C16 #16737C
split-complementary
#52167C #737C16 #167C1F
monochromatic
#11051A #300D48 #52167C #741FB0 #9532DB

Accessibility & contrast

On white

11.90
#52167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52167C
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52167C#FFFFFF#000000##FFFFFF
##52167C1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#4A3149
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52167c;
/* rgb */ color: rgb(82, 22, 124);
/* oklch */ color: oklch(35.7% 0.160 306.3);
Tailwind
colors: {
  custom: {
    50: '#875ba3',
    500: '#52167c',
    950: '#000000',
  },
}
SCSS
$custom: #52167c;
$custom-light: #875ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#52167c",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 275.294,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.15958,
    "h": 306.3
  },
  "luminance": 0.03823
}

Semantic roles & 50–950 ramp

primary
#52167C
secondary
#6DB13D
accent
#ED3B84
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52167C

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

Preview Lab → · Contrast checker → · Palette generator →

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