#5331A1#5331A1

#5331A1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.170 H 291.3°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5331A1
RGBrgb(83, 49, 161)
HSLhsl(258, 53%, 41%)
HSVhsv(258, 70%, 63%)
CMYKcmyk(48.4%, 69.6%, 0%, 36.9%)
CIE-LABlab(30.90, 42.23, -55.36)
CIE-LCHlch(30.90, 69.63, 307.34°)
OKLaboklab(42.28% 0.0618 -0.1587)
OKLCHoklch(42.28% 0.17 291.3)
XYZxyz(11.0968, 6.6084, 34.4022)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331A1 #7FA131
analogous
#3147A1 #5331A1 #8B31A1
triadic
#5331A1 #A15331 #31A153
tetradic
#5331A1 #A13147 #7FA131 #31A18B
square
#5331A1 #A13147 #7FA131 #31A18B
split-complementary
#5331A1 #A18B31 #47A131
monochromatic
#231443 #3B2372 #5331A1 #6F48C7 #9477D6

Accessibility & contrast

On white

9.04
#5331A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5331A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5331A1#FFFFFF#000000##FFFFFF
##5331A11.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#3A4D65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5331a1;
/* rgb */ color: rgb(83, 49, 161);
/* oklch */ color: oklch(42.3% 0.170 291.3);
Tailwind
colors: {
  custom: {
    50: '#8b6cbe',
    500: '#5331a1',
    950: '#000000',
  },
}
SCSS
$custom: #5331a1;
$custom-light: #8b6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5331a1",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 258.214,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42277,
    "c": 0.17029,
    "h": 291.3
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#5331A1
secondary
#A6BE70
accent
#DD4BB1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5331A1

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

Preview Lab → · Contrast checker → · Palette generator →

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