#5A31CF#5A31CF

#5A31CF is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.1% C 0.224 H 286.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5A31CF
RGBrgb(90, 49, 207)
HSLhsl(256, 62%, 50%)
HSVhsv(256, 76%, 81%)
CMYKcmyk(56.5%, 76.3%, 0%, 18.8%)
CIE-LABlab(35.74, 56.32, -74.63)
CIE-LCHlch(35.74, 93.50, 307.04°)
OKLaboklab(47.13% 0.0616 -0.2149)
OKLCHoklch(47.13% 0.224 286)
XYZxyz(16.5739, 8.8743, 59.8590)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A31CF #A6CF31
analogous
#3157CF #5A31CF #A931CF
triadic
#5A31CF #CF5A31 #31CF5A
tetradic
#5A31CF #CF3157 #A6CF31 #31CFA9
square
#5A31CF #CF3157 #A6CF31 #31CFA9
split-complementary
#5A31CF #CFA931 #57CF31
monochromatic
#2F196C #44259E #5A31CF #8263DB #AA94E6

Accessibility & contrast

On white

7.57
#5A31CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A31CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A31CF
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A31CF#FFFFFF#000000##FFFFFF
##5A31CF1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#004FCC
Tritanopia (blue-blind)
#205E7F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a31cf;
/* rgb */ color: rgb(90, 49, 207);
/* oklch */ color: oklch(47.1% 0.224 286.0);
Tailwind
colors: {
  custom: {
    50: '#956edf',
    500: '#5a31cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a31cf;
$custom-light: #956edf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a31cf",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 255.57,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47131,
    "c": 0.22355,
    "h": 286
  },
  "luminance": 0.08875
}

Semantic roles & 50–950 ramp

primary
#5A31CF
secondary
#BFD18B
accent
#E543BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5A31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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