#52167F#52167F

#52167F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.163 H 305.1°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#52167F
RGBrgb(82, 22, 127)
HSLhsl(274, 70%, 29%)
HSVhsv(274, 83%, 50%)
CMYKcmyk(35.4%, 82.7%, 0%, 50.2%)
CIE-LABlab(23.34, 45.81, -46.67)
CIE-LCHlch(23.34, 65.40, 314.47°)
OKLaboklab(36% 0.0935 -0.133)
OKLCHoklch(36% 0.163 305.1)
XYZxyz(7.5965, 3.9000, 20.4271)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52167F #437F16
analogous
#1E167F #52167F #7F1678
triadic
#52167F #7F5216 #167F52
tetradic
#52167F #7F1E16 #437F16 #16787F
square
#52167F #7F1E16 #437F16 #16787F
split-complementary
#52167F #787F16 #167F1E
monochromatic
#11051A #300D4B #52167F #741FB3 #9434DC

Accessibility & contrast

On white

11.80
#52167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#52167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52167F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52167F#FFFFFF#000000##FFFFFF
##52167F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#49324B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52167f;
/* rgb */ color: rgb(82, 22, 127);
/* oklch */ color: oklch(36.0% 0.163 305.1);
Tailwind
colors: {
  custom: {
    50: '#885ca5',
    500: '#52167f',
    950: '#000000',
  },
}
SCSS
$custom: #52167f;
$custom-light: #885ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#52167f",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 274.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.16261,
    "h": 305.1
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#52167F
secondary
#70B43D
accent
#ED3B87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52167F

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

Preview Lab → · Contrast checker → · Palette generator →

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