#531166#531166

#531166 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.144 H 317.2°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#531166
RGBrgb(83, 17, 102)
HSLhsl(287, 71%, 23%)
HSVhsv(287, 83%, 40%)
CMYKcmyk(18.6%, 83.3%, 0%, 60%)
CIE-LABlab(20.83, 42.17, -34.64)
CIE-LCHlch(20.83, 54.57, 320.60°)
OKLaboklab(33.63% 0.1053 -0.0976)
OKLCHoklch(33.63% 0.144 317.2)
XYZxyz(6.1656, 3.1995, 12.8606)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531166 #246611
analogous
#281166 #531166 #66114E
triadic
#531166 #665311 #116653
tetradic
#531166 #662811 #246611 #114E66
square
#531166 #662811 #246611 #114E66
split-complementary
#531166 #4E6611 #116628
monochromatic
#15041A #280832 #531166 #7E1A9A #A822CF

Accessibility & contrast

On white

12.81
#531166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#531166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531166
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531166#FFFFFF#000000##FFFFFF
##5311661.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#133464
Tritanopia (blue-blind)
#52243C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #531166;
/* rgb */ color: rgb(83, 17, 102);
/* oklch */ color: oklch(33.6% 0.144 317.2);
Tailwind
colors: {
  custom: {
    50: '#875892',
    500: '#531166',
    950: '#000000',
  },
}
SCSS
$custom: #531166;
$custom-light: #875892;
$custom-dark: #000000;
JSON
{
  "hex": "#531166",
  "rgb": {
    "r": 83,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 286.588,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33634,
    "c": 0.14353,
    "h": 317.2
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#531166
secondary
#4C9E35
accent
#EE3A62
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #531166

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

Preview Lab → · Contrast checker → · Palette generator →

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