#5C31DC#5C31DC

#5C31DC is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.238 H 284.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5C31DC
RGBrgb(92, 49, 220)
HSLhsl(255, 71%, 53%)
HSVhsv(255, 78%, 86%)
CMYKcmyk(58.2%, 77.7%, 0%, 13.7%)
CIE-LABlab(37.18, 60.14, -79.75)
CIE-LCHlch(37.18, 99.88, 307.02°)
OKLaboklab(48.56% 0.0608 -0.2298)
OKLCHoklch(48.56% 0.238 284.8)
XYZxyz(18.4263, 9.6381, 68.5856)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31DC #B1DC31
analogous
#315BDC #5C31DC #B231DC
triadic
#5C31DC #DC5C31 #31DC5C
tetradic
#5C31DC #DC315B #B1DC31 #31DCB2
square
#5C31DC #DC315B #B1DC31 #31DCB2
split-complementary
#5C31DC #DCB231 #5BDC31
monochromatic
#2F157D #431EB2 #5C31DC #8565E5 #AF9AEE

Accessibility & contrast

On white

7.17
#5C31DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5C31DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31DC
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31DC#FFFFFF#000000##FFFFFF
##5C31DC1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE1
Deuteranopia (green-blind)
#0052D9
Tritanopia (blue-blind)
#0D6386
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5c31dc;
/* rgb */ color: rgb(92, 49, 220);
/* oklch */ color: oklch(48.6% 0.238 284.8);
Tailwind
colors: {
  custom: {
    50: '#986fe8',
    500: '#5c31dc',
    950: '#000000',
  },
}
SCSS
$custom: #5c31dc;
$custom-light: #986fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31dc",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 220
  },
  "hsl": {
    "h": 255.088,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4856,
    "c": 0.2377,
    "h": 284.8
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#5C31DC
secondary
#C7D98F
accent
#EE3AC1
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5C31DC

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

Preview Lab → · Contrast checker → · Palette generator →

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