#5C31BA#5C31BA

#5C31BA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.200 H 290.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5C31BA
RGBrgb(92, 49, 186)
HSLhsl(259, 58%, 46%)
HSVhsv(259, 74%, 73%)
CMYKcmyk(50.5%, 73.7%, 0%, 27.1%)
CIE-LABlab(34.02, 50.79, -65.17)
CIE-LCHlch(34.02, 82.62, 307.93°)
OKLaboklab(45.38% 0.0699 -0.1871)
OKLCHoklch(45.38% 0.2 290.5)
XYZxyz(14.3723, 8.0165, 47.2349)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31BA #8FBA31
analogous
#314ABA #5C31BA #A031BA
triadic
#5C31BA #BA5C31 #31BA5C
tetradic
#5C31BA #BA314A #8FBA31 #31BAA0
square
#5C31BA #BA314A #8FBA31 #31BAA0
split-complementary
#5C31BA #BAA031 #4ABA31
monochromatic
#2C1759 #44248A #5C31BA #7D56D2 #A286DF

Accessibility & contrast

On white

8.07
#5C31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5C31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31BA
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31BA#FFFFFF#000000##FFFFFF
##5C31BA1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#3B5673
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c31ba;
/* rgb */ color: rgb(92, 49, 186);
/* oklch */ color: oklch(45.4% 0.200 290.5);
Tailwind
colors: {
  custom: {
    50: '#936dd0',
    500: '#5c31ba',
    950: '#000000',
  },
}
SCSS
$custom: #5c31ba;
$custom-light: #936dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31ba",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 258.832,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45382,
    "c": 0.19976,
    "h": 290.5
  },
  "luminance": 0.08017
}

Semantic roles & 50–950 ramp

primary
#5C31BA
secondary
#B1C97E
accent
#E246B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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