#531168#531168

#531168 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.8% C 0.145 H 316.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#531168
RGBrgb(83, 17, 104)
HSLhsl(286, 72%, 24%)
HSVhsv(286, 84%, 41%)
CMYKcmyk(20.2%, 83.7%, 0%, 59.2%)
CIE-LABlab(20.98, 42.59, -35.70)
CIE-LCHlch(20.98, 55.58, 320.03°)
OKLaboklab(33.79% 0.1049 -0.1007)
OKLCHoklch(33.79% 0.145 316.2)
XYZxyz(6.2660, 3.2396, 13.3893)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531168 #266811
analogous
#271168 #531168 #681151
triadic
#531168 #685311 #116853
tetradic
#531168 #682711 #266811 #115168
square
#531168 #682711 #266811 #115168
split-complementary
#531168 #516811 #116827
monochromatic
#15041A #290833 #531168 #7D1A9D #A722D1

Accessibility & contrast

On white

12.74
#531168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#531168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531168
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531168#FFFFFF#000000##FFFFFF
##5311681.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#103466
Tritanopia (blue-blind)
#52253D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #531168;
/* rgb */ color: rgb(83, 17, 104);
/* oklch */ color: oklch(33.8% 0.145 316.2);
Tailwind
colors: {
  custom: {
    50: '#875894',
    500: '#531168',
    950: '#000000',
  },
}
SCSS
$custom: #531168;
$custom-light: #875894;
$custom-dark: #000000;
JSON
{
  "hex": "#531168",
  "rgb": {
    "r": 83,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 285.517,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3379,
    "c": 0.14541,
    "h": 316.2
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#531168
secondary
#4FA035
accent
#EF3965
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #531168

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

Preview Lab → · Contrast checker → · Palette generator →

#531168 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva