#5C31C8#5C31C8

#5C31C8 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.216 H 287.9°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5C31C8
RGBrgb(92, 49, 200)
HSLhsl(257, 61%, 49%)
HSVhsv(257, 76%, 78%)
CMYKcmyk(54%, 75.5%, 0%, 21.6%)
CIE-LABlab(35.28, 54.65, -71.30)
CIE-LCHlch(35.28, 89.83, 307.47°)
OKLaboklab(46.66% 0.0664 -0.2051)
OKLCHoklch(46.66% 0.216 287.9)
XYZxyz(15.9342, 8.6413, 55.4607)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31C8 #9DC831
analogous
#3152C8 #5C31C8 #A831C8
triadic
#5C31C8 #C85C31 #31C85C
tetradic
#5C31C8 #C83152 #9DC831 #31C8A8
square
#5C31C8 #C83152 #9DC831 #31C8A8
split-complementary
#5C31C8 #C8A831 #52C831
monochromatic
#2F1966 #452597 #5C31C8 #815FD8 #A890E4

Accessibility & contrast

On white

7.70
#5C31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5C31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31C8
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31C8#FFFFFF#000000##FFFFFF
##5C31C81.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#2F5B7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5c31c8;
/* rgb */ color: rgb(92, 49, 200);
/* oklch */ color: oklch(46.7% 0.216 287.9);
Tailwind
colors: {
  custom: {
    50: '#956eda',
    500: '#5c31c8',
    950: '#000000',
  },
}
SCSS
$custom: #5c31c8;
$custom-light: #956eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31c8",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 257.086,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4666,
    "c": 0.21559,
    "h": 287.9
  },
  "luminance": 0.08642
}

Semantic roles & 50–950 ramp

primary
#5C31C8
secondary
#BACE86
accent
#E444B6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5C31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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