#5D3DC6#5D3DC6

#5D3DC6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.1% C 0.200 H 287.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#5D3DC6
RGBrgb(93, 61, 198)
HSLhsl(254, 55%, 51%)
HSVhsv(254, 69%, 78%)
CMYKcmyk(53%, 69.2%, 0%, 22.4%)
CIE-LABlab(37.37, 48.15, -66.71)
CIE-LCHlch(37.37, 82.27, 305.82°)
OKLaboklab(48.11% 0.0585 -0.1917)
OKLCHoklch(48.11% 0.2 287)
XYZxyz(16.3730, 9.7410, 54.4326)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DC6 #A6C63D
analogous
#3D61C6 #5D3DC6 #A23DC6
triadic
#5D3DC6 #C65D3D #3DC65D
tetradic
#5D3DC6 #C63D61 #A6C63D #3DC6A2
square
#5D3DC6 #C63D61 #A6C63D #3DC6A2
split-complementary
#5D3DC6 #C6A23D #61C63D
monochromatic
#301F6A #462D99 #5D3DC6 #846CD4 #AC9CE2

Accessibility & contrast

On white

7.12
#5D3DC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5D3DC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DC6
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DC6#FFFFFF#000000##FFFFFF
##5D3DC61.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#33607D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3dc6;
/* rgb */ color: rgb(93, 61, 198);
/* oklch */ color: oklch(48.1% 0.200 287.0);
Tailwind
colors: {
  custom: {
    50: '#9575d8',
    500: '#5d3dc6',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dc6;
$custom-light: #9575d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dc6",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 198
  },
  "hsl": {
    "h": 254.015,
    "s": 54.582,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48109,
    "c": 0.20042,
    "h": 287
  },
  "luminance": 0.09742
}

Semantic roles & 50–950 ramp

primary
#5D3DC6
secondary
#C0CE91
accent
#DE4ABB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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