#5331AA#5331AA

#5331AA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.181 H 289.4°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5331AA
RGBrgb(83, 49, 170)
HSLhsl(257, 55%, 43%)
HSVhsv(257, 71%, 67%)
CMYKcmyk(51.2%, 71.2%, 0%, 33.3%)
CIE-LABlab(31.66, 44.82, -59.53)
CIE-LCHlch(31.66, 74.52, 306.98°)
OKLaboklab(43.06% 0.0602 -0.1709)
OKLCHoklch(43.06% 0.181 289.4)
XYZxyz(11.9192, 6.9374, 38.7334)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331AA #88AA31
analogous
#314BAA #5331AA #9031AA
triadic
#5331AA #AA5331 #31AA53
tetradic
#5331AA #AA314B #88AA31 #31AA90
square
#5331AA #AA314B #88AA31 #31AA90
split-complementary
#5331AA #AA9031 #4BAA31
monochromatic
#25164B #3C237A #5331AA #704DCC #967CD9

Accessibility & contrast

On white

8.80
#5331AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5331AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5331AA#FFFFFF#000000##FFFFFF
##5331AA1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#34506A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5331aa;
/* rgb */ color: rgb(83, 49, 170);
/* oklch */ color: oklch(43.1% 0.181 289.4);
Tailwind
colors: {
  custom: {
    50: '#8c6cc4',
    500: '#5331aa',
    950: '#000000',
  },
}
SCSS
$custom: #5331aa;
$custom-light: #8c6cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5331aa",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 256.86,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43061,
    "c": 0.1812,
    "h": 289.4
  },
  "luminance": 0.06938
}

Semantic roles & 50–950 ramp

primary
#5331AA
secondary
#ACC275
accent
#DF49B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5331AA

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

Preview Lab → · Contrast checker → · Palette generator →

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