#5C31B8#5C31B8

#5C31B8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.197 H 290.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5C31B8
RGBrgb(92, 49, 184)
HSLhsl(259, 58%, 46%)
HSVhsv(259, 73%, 72%)
CMYKcmyk(50%, 73.4%, 0%, 27.8%)
CIE-LABlab(33.84, 50.24, -64.27)
CIE-LCHlch(33.84, 81.57, 308.01°)
OKLaboklab(45.2% 0.0704 -0.1845)
OKLCHoklch(45.2% 0.197 290.9)
XYZxyz(14.1612, 7.9321, 46.1230)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31B8 #8DB831
analogous
#3149B8 #5C31B8 #9F31B8
triadic
#5C31B8 #B85C31 #31B85C
tetradic
#5C31B8 #B83149 #8DB831 #31B89F
square
#5C31B8 #B83149 #8DB831 #31B89F
split-complementary
#5C31B8 #B89F31 #49B831
monochromatic
#2C1757 #442488 #5C31B8 #7C55D2 #A185DE

Accessibility & contrast

On white

8.12
#5C31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5C31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31B8
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31B8#FFFFFF#000000##FFFFFF
##5C31B81.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#3D5572
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c31b8;
/* rgb */ color: rgb(92, 49, 184);
/* oklch */ color: oklch(45.2% 0.197 290.9);
Tailwind
colors: {
  custom: {
    50: '#936dce',
    500: '#5c31b8',
    950: '#000000',
  },
}
SCSS
$custom: #5c31b8;
$custom-light: #936dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31b8",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 259.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45204,
    "c": 0.19748,
    "h": 290.9
  },
  "luminance": 0.07933
}

Semantic roles & 50–950 ramp

primary
#5C31B8
secondary
#B0C87D
accent
#E147B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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