#5C31DB#5C31DB

#5C31DB is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.237 H 285.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5C31DB
RGBrgb(92, 49, 219)
HSLhsl(255, 70%, 53%)
HSVhsv(255, 78%, 86%)
CMYKcmyk(58%, 77.6%, 0%, 14.1%)
CIE-LABlab(37.09, 59.86, -79.33)
CIE-LCHlch(37.09, 99.38, 307.04°)
OKLaboklab(48.46% 0.0611 -0.2286)
OKLCHoklch(48.46% 0.237 285)
XYZxyz(18.2942, 9.5853, 67.8902)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31DB #B0DB31
analogous
#315BDB #5C31DB #B131DB
triadic
#5C31DB #DB5C31 #31DB5C
tetradic
#5C31DB #DB315B #B0DB31 #31DBB1
square
#5C31DB #DB315B #B0DB31 #31DBB1
split-complementary
#5C31DB #DBB131 #5BDB31
monochromatic
#30167C #441FB0 #5C31DB #8565E4 #AE99ED

Accessibility & contrast

On white

7.20
#5C31DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5C31DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31DB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31DB#FFFFFF#000000##FFFFFF
##5C31DB1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE0
Deuteranopia (green-blind)
#0052D8
Tritanopia (blue-blind)
#106386
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5c31db;
/* rgb */ color: rgb(92, 49, 219);
/* oklch */ color: oklch(48.5% 0.237 285.0);
Tailwind
colors: {
  custom: {
    50: '#986fe8',
    500: '#5c31db',
    950: '#000000',
  },
}
SCSS
$custom: #5c31db;
$custom-light: #986fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31db",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 255.176,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48463,
    "c": 0.23661,
    "h": 285
  },
  "luminance": 0.09586
}

Semantic roles & 50–950 ramp

primary
#5C31DB
secondary
#C6D98F
accent
#ED3BC0
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5C31DB

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

Preview Lab → · Contrast checker → · Palette generator →

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