#5A31BF#5A31BF

#5A31BF is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.206 H 288.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5A31BF
RGBrgb(90, 49, 191)
HSLhsl(257, 59%, 47%)
HSVhsv(257, 74%, 75%)
CMYKcmyk(52.9%, 74.3%, 0%, 25.1%)
CIE-LABlab(34.25, 51.87, -67.73)
CIE-LCHlch(34.25, 85.31, 307.45°)
OKLaboklab(45.64% 0.0658 -0.1947)
OKLCHoklch(45.64% 0.206 288.7)
XYZxyz(14.7160, 8.1312, 50.0742)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A31BF #96BF31
analogous
#314FBF #5A31BF #A131BF
triadic
#5A31BF #BF5A31 #31BF5A
tetradic
#5A31BF #BF314F #96BF31 #31BFA1
square
#5A31BF #BF314F #96BF31 #31BFA1
split-complementary
#5A31BF #BFA131 #4FBF31
monochromatic
#2C185E #43258E #5A31BF #7D59D4 #A38AE1

Accessibility & contrast

On white

8.00
#5A31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5A31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A31BF
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A31BF#FFFFFF#000000##FFFFFF
##5A31BF1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#335876
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a31bf;
/* rgb */ color: rgb(90, 49, 191);
/* oklch */ color: oklch(45.6% 0.206 288.7);
Tailwind
colors: {
  custom: {
    50: '#936dd3',
    500: '#5a31bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a31bf;
$custom-light: #936dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a31bf",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 257.324,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45637,
    "c": 0.20552,
    "h": 288.7
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#5A31BF
secondary
#B5CB81
accent
#E245B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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