#5331A4#5331A4

#5331A4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.174 H 290.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5331A4
RGBrgb(83, 49, 164)
HSLhsl(258, 54%, 42%)
HSVhsv(258, 70%, 64%)
CMYKcmyk(49.4%, 70.1%, 0%, 35.7%)
CIE-LABlab(31.15, 43.09, -56.76)
CIE-LCHlch(31.15, 71.27, 307.20°)
OKLaboklab(42.54% 0.0613 -0.1628)
OKLCHoklch(42.54% 0.174 290.6)
XYZxyz(11.3645, 6.7155, 35.8122)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331A4 #82A431
analogous
#3149A4 #5331A4 #8D31A4
triadic
#5331A4 #A45331 #31A453
tetradic
#5331A4 #A43149 #82A431 #31A48D
square
#5331A4 #A43149 #82A431 #31A48D
split-complementary
#5331A4 #A48D31 #49A431
monochromatic
#231546 #3B2375 #5331A4 #6F49C9 #9479D7

Accessibility & contrast

On white

8.96
#5331A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5331A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5331A4#FFFFFF#000000##FFFFFF
##5331A41.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#384E67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5331a4;
/* rgb */ color: rgb(83, 49, 164);
/* oklch */ color: oklch(42.5% 0.174 290.6);
Tailwind
colors: {
  custom: {
    50: '#8b6cc0',
    500: '#5331a4',
    950: '#000000',
  },
}
SCSS
$custom: #5331a4;
$custom-light: #8b6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5331a4",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 257.739,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42535,
    "c": 0.17394,
    "h": 290.6
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#5331A4
secondary
#A8BF72
accent
#DD4AB2
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5331A4

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

Preview Lab → · Contrast checker → · Palette generator →

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