#5331AC#5331AC

#5331AC is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.184 H 289.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5331AC
RGBrgb(83, 49, 172)
HSLhsl(257, 56%, 43%)
HSVhsv(257, 72%, 67%)
CMYKcmyk(51.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(31.84, 45.40, -60.45)
CIE-LCHlch(31.84, 75.60, 306.91°)
OKLaboklab(43.24% 0.0598 -0.1736)
OKLCHoklch(43.24% 0.184 289)
XYZxyz(12.1098, 7.0136, 39.7374)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331AC #8AAC31
analogous
#314DAC #5331AC #9031AC
triadic
#5331AC #AC5331 #31AC53
tetradic
#5331AC #AC314D #8AAC31 #31AC90
square
#5331AC #AC314D #8AAC31 #31AC90
split-complementary
#5331AC #AC9031 #4DAC31
monochromatic
#25164D #3C237C #5331AC #714ECC #977DDA

Accessibility & contrast

On white

8.74
#5331AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5331AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5331AC#FFFFFF#000000##FFFFFF
##5331AC1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#32516B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5331ac;
/* rgb */ color: rgb(83, 49, 172);
/* oklch */ color: oklch(43.2% 0.184 289.0);
Tailwind
colors: {
  custom: {
    50: '#8c6cc6',
    500: '#5331ac',
    950: '#000000',
  },
}
SCSS
$custom: #5331ac;
$custom-light: #8c6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5331ac",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 256.585,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43238,
    "c": 0.1836,
    "h": 289
  },
  "luminance": 0.07014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5331AC

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

Preview Lab → · Contrast checker → · Palette generator →

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