#5321A4#5321A4

#5321A4 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.191 H 293.1°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5321A4
RGBrgb(83, 33, 164)
HSLhsl(263, 66%, 39%)
HSVhsv(263, 80%, 64%)
CMYKcmyk(49.4%, 79.9%, 0%, 35.7%)
CIE-LABlab(28.40, 50.88, -61.27)
CIE-LCHlch(28.40, 79.64, 309.71°)
OKLaboklab(40.6% 0.075 -0.1759)
OKLCHoklch(40.6% 0.191 293.1)
XYZxyz(10.8101, 5.6067, 35.6274)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5321A4 #72A421
analogous
#2130A4 #5321A4 #9421A4
triadic
#5321A4 #A45321 #21A453
tetradic
#5321A4 #A42130 #72A421 #21A494
square
#5321A4 #A42130 #72A421 #21A494
split-complementary
#5321A4 #A49421 #30A421
monochromatic
#1F0C3E #391771 #5321A4 #6D2DD5 #9160DF

Accessibility & contrast

On white

9.90
#5321A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5321A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5321A4
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5321A4#FFFFFF#000000##FFFFFF
##5321A41.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#394763
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5321a4;
/* rgb */ color: rgb(83, 33, 164);
/* oklch */ color: oklch(40.6% 0.191 293.1);
Tailwind
colors: {
  custom: {
    50: '#8c63c0',
    500: '#5321a4',
    950: '#000000',
  },
}
SCSS
$custom: #5321a4;
$custom-light: #8c63c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5321a4",
  "rgb": {
    "r": 83,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 262.901,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40595,
    "c": 0.19123,
    "h": 293.1
  },
  "luminance": 0.05607
}

Semantic roles & 50–950 ramp

primary
#5321A4
secondary
#9DC45D
accent
#E93EA8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5321A4

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

Preview Lab → · Contrast checker → · Palette generator →

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