#5A31AF#5A31AF

#5A31AF is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.187 H 291.8°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5A31AF
RGBrgb(90, 49, 175)
HSLhsl(260, 56%, 44%)
HSVhsv(260, 72%, 69%)
CMYKcmyk(48.6%, 72%, 0%, 31.4%)
CIE-LABlab(32.84, 47.42, -60.57)
CIE-LCHlch(32.84, 76.92, 308.06°)
OKLaboklab(44.21% 0.0694 -0.1737)
OKLCHoklch(44.21% 0.187 291.8)
XYZxyz(13.0504, 7.4650, 41.3024)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A31AF #86AF31
analogous
#3147AF #5A31AF #9931AF
triadic
#5A31AF #AF5A31 #31AF5A
tetradic
#5A31AF #AF3147 #86AF31 #31AF99
square
#5A31AF #AF3147 #86AF31 #31AF99
split-complementary
#5A31AF #AF9931 #47AF31
monochromatic
#29164F #41247F #5A31AF #794FCE #9D7FDB

Accessibility & contrast

On white

8.42
#5A31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5A31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A31AF
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A31AF#FFFFFF#000000##FFFFFF
##5A31AF1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#3F526D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a31af;
/* rgb */ color: rgb(90, 49, 175);
/* oklch */ color: oklch(44.2% 0.187 291.8);
Tailwind
colors: {
  custom: {
    50: '#916dc8',
    500: '#5a31af',
    950: '#000000',
  },
}
SCSS
$custom: #5a31af;
$custom-light: #916dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a31af",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 259.524,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44206,
    "c": 0.18707,
    "h": 291.8
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

primary
#5A31AF
secondary
#ABC478
accent
#E048AE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A31AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5A31AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva