#5331A7#5331A7

#5331A7 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.178 H 290.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5331A7
RGBrgb(83, 49, 167)
HSLhsl(257, 55%, 42%)
HSVhsv(257, 71%, 65%)
CMYKcmyk(50.3%, 70.7%, 0%, 34.5%)
CIE-LABlab(31.41, 43.95, -58.15)
CIE-LCHlch(31.41, 72.90, 307.08°)
OKLaboklab(42.8% 0.0608 -0.1669)
OKLCHoklch(42.8% 0.178 290)
XYZxyz(11.6386, 6.8252, 37.2559)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331A7 #85A731
analogous
#314AA7 #5331A7 #8E31A7
triadic
#5331A7 #A75331 #31A753
tetradic
#5331A7 #A7314A #85A731 #31A78E
square
#5331A7 #A7314A #85A731 #31A78E
split-complementary
#5331A7 #A78E31 #4AA731
monochromatic
#241548 #3B2378 #5331A7 #704BCA #957AD8

Accessibility & contrast

On white

8.88
#5331A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5331A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331A7
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331A7#FFFFFF#000000##FFFFFF
##5331A71.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#364F68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5331a7;
/* rgb */ color: rgb(83, 49, 167);
/* oklch */ color: oklch(42.8% 0.178 290.0);
Tailwind
colors: {
  custom: {
    50: '#8b6cc2',
    500: '#5331a7',
    950: '#000000',
  },
}
SCSS
$custom: #5331a7;
$custom-light: #8b6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5331a7",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 257.288,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42797,
    "c": 0.17758,
    "h": 290
  },
  "luminance": 0.06826
}

Semantic roles & 50–950 ramp

primary
#5331A7
secondary
#AAC173
accent
#DE4AB3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5331A7

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

Preview Lab → · Contrast checker → · Palette generator →

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