#5D38C3#5D38C3

#5D38C3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.203 H 288.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5D38C3
RGBrgb(93, 56, 195)
HSLhsl(256, 55%, 49%)
HSVhsv(256, 71%, 76%)
CMYKcmyk(52.3%, 71.3%, 0%, 23.5%)
CIE-LABlab(36.17, 49.93, -66.93)
CIE-LCHlch(36.17, 83.50, 306.72°)
OKLaboklab(47.17% 0.0634 -0.1923)
OKLCHoklch(47.17% 0.203 288.3)
XYZxyz(15.7758, 9.0949, 52.5434)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38C3 #9EC338
analogous
#3859C3 #5D38C3 #A338C3
triadic
#5D38C3 #C35D38 #38C35D
tetradic
#5D38C3 #C33859 #9EC338 #38C3A3
square
#5D38C3 #C33859 #9EC338 #38C3A3
split-complementary
#5D38C3 #C3A338 #59C338
monochromatic
#301D64 #462A93 #5D38C3 #8265D3 #A995E1

Accessibility & contrast

On white

7.45
#5D38C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5D38C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38C3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38C3#FFFFFF#000000##FFFFFF
##5D38C31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#365D7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d38c3;
/* rgb */ color: rgb(93, 56, 195);
/* oklch */ color: oklch(47.2% 0.203 288.3);
Tailwind
colors: {
  custom: {
    50: '#9572d6',
    500: '#5d38c3',
    950: '#000000',
  },
}
SCSS
$custom: #5d38c3;
$custom-light: #9572d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38c3",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 255.971,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4717,
    "c": 0.20251,
    "h": 288.3
  },
  "luminance": 0.09096
}

Semantic roles & 50–950 ramp

primary
#5D38C3
secondary
#BBCC8B
accent
#DF49B7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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