#5331AB#5331AB

#5331AB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.182 H 289.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5331AB
RGBrgb(83, 49, 171)
HSLhsl(257, 55%, 43%)
HSVhsv(257, 71%, 67%)
CMYKcmyk(51.5%, 71.3%, 0%, 32.9%)
CIE-LABlab(31.75, 45.11, -59.99)
CIE-LCHlch(31.75, 75.06, 306.94°)
OKLaboklab(43.15% 0.06 -0.1723)
OKLCHoklch(43.15% 0.182 289.2)
XYZxyz(12.0141, 6.9754, 39.2335)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331AB #89AB31
analogous
#314CAB #5331AB #9031AB
triadic
#5331AB #AB5331 #31AB53
tetradic
#5331AB #AB314C #89AB31 #31AB90
square
#5331AB #AB314C #89AB31 #31AB90
split-complementary
#5331AB #AB9031 #4CAB31
monochromatic
#25164C #3C237B #5331AB #714DCC #977DDA

Accessibility & contrast

On white

8.77
#5331AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5331AB#FFFFFF#000000##FFFFFF
##5331AB1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#33516A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5331ab;
/* rgb */ color: rgb(83, 49, 171);
/* oklch */ color: oklch(43.1% 0.182 289.2);
Tailwind
colors: {
  custom: {
    50: '#8c6cc5',
    500: '#5331ab',
    950: '#000000',
  },
}
SCSS
$custom: #5331ab;
$custom-light: #8c6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5331ab",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 256.721,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43149,
    "c": 0.1824,
    "h": 289.2
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5331AB

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

Preview Lab → · Contrast checker → · Palette generator →

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