#5331AD#5331AD

#5331AD is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.185 H 288.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5331AD
RGBrgb(83, 49, 173)
HSLhsl(256, 56%, 44%)
HSVhsv(256, 72%, 68%)
CMYKcmyk(52%, 71.7%, 0%, 32.2%)
CIE-LABlab(31.93, 45.69, -60.90)
CIE-LCHlch(31.93, 76.13, 306.88°)
OKLaboklab(43.33% 0.0596 -0.1749)
OKLCHoklch(43.33% 0.185 288.8)
XYZxyz(12.2062, 7.0522, 40.2451)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331AD #8BAD31
analogous
#314DAD #5331AD #9131AD
triadic
#5331AD #AD5331 #31AD53
tetradic
#5331AD #AD314D #8BAD31 #31AD91
square
#5331AD #AD314D #8BAD31 #31AD91
split-complementary
#5331AD #AD9131 #4DAD31
monochromatic
#25164E #3C237D #5331AD #714ECD #977EDA

Accessibility & contrast

On white

8.71
#5331AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5331AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331AD
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331AD#FFFFFF#000000##FFFFFF
##5331AD1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#32526C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5331ad;
/* rgb */ color: rgb(83, 49, 173);
/* oklch */ color: oklch(43.3% 0.185 288.8);
Tailwind
colors: {
  custom: {
    50: '#8c6cc6',
    500: '#5331ad',
    950: '#000000',
  },
}
SCSS
$custom: #5331ad;
$custom-light: #8c6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5331ad",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 256.452,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43327,
    "c": 0.18479,
    "h": 288.8
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

primary
#5331AD
secondary
#AEC377
accent
#DF49B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5331AD

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

Preview Lab → · Contrast checker → · Palette generator →

#5331AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva