#5C31CA#5C31CA

#5C31CA is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.8% C 0.218 H 287.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5C31CA
RGBrgb(92, 49, 202)
HSLhsl(257, 61%, 49%)
HSVhsv(257, 76%, 79%)
CMYKcmyk(54.5%, 75.7%, 0%, 20.8%)
CIE-LABlab(35.47, 55.20, -72.16)
CIE-LCHlch(35.47, 90.85, 307.41°)
OKLaboklab(46.85% 0.0659 -0.2076)
OKLCHoklch(46.85% 0.218 287.6)
XYZxyz(16.1695, 8.7354, 56.6997)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31CA #9FCA31
analogous
#3152CA #5C31CA #A931CA
triadic
#5C31CA #CA5C31 #31CA5C
tetradic
#5C31CA #CA3152 #9FCA31 #31CAA9
square
#5C31CA #CA3152 #9FCA31 #31CAA9
split-complementary
#5C31CA #CAA931 #52CA31
monochromatic
#2F1967 #462599 #5C31CA #8260D8 #A891E4

Accessibility & contrast

On white

7.64
#5C31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5C31CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31CA
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31CA#FFFFFF#000000##FFFFFF
##5C31CA1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#2D5C7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5c31ca;
/* rgb */ color: rgb(92, 49, 202);
/* oklch */ color: oklch(46.8% 0.218 287.6);
Tailwind
colors: {
  custom: {
    50: '#966edb',
    500: '#5c31ca',
    950: '#000000',
  },
}
SCSS
$custom: #5c31ca;
$custom-light: #966edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31ca",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 256.863,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46846,
    "c": 0.21782,
    "h": 287.6
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#5C31CA
secondary
#BBCF88
accent
#E444B7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5C31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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