#5D31C8#5D31C8

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

Color values

HEX#5D31C8
RGBrgb(93, 49, 200)
HSLhsl(257, 61%, 49%)
HSVhsv(257, 76%, 78%)
CMYKcmyk(53.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(35.39, 54.78, -71.13)
CIE-LCHlch(35.39, 89.78, 307.60°)
OKLaboklab(46.76% 0.0679 -0.2046)
OKLCHoklch(46.76% 0.216 288.4)
XYZxyz(16.0348, 8.6931, 55.4654)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31C8 #9CC831
analogous
#3151C8 #5D31C8 #A931C8
triadic
#5D31C8 #C85D31 #31C85D
tetradic
#5D31C8 #C83151 #9CC831 #31C8A9
square
#5D31C8 #C83151 #9CC831 #31C8A9
split-complementary
#5D31C8 #C8A931 #51C831
monochromatic
#2F1966 #462597 #5D31C8 #825FD8 #A890E4

Accessibility & contrast

On white

7.67
#5D31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5D31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31C8
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31C8#FFFFFF#000000##FFFFFF
##5D31C81.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d31c8;
/* rgb */ color: rgb(93, 49, 200);
/* oklch */ color: oklch(46.8% 0.216 288.4);
Tailwind
colors: {
  custom: {
    50: '#966eda',
    500: '#5d31c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d31c8;
$custom-light: #966eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31c8",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 257.483,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46756,
    "c": 0.21554,
    "h": 288.4
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#5D31C8
secondary
#B9CE86
accent
#E444B5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5D31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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