#5D38CF#5D38CF

#5D38CF is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.216 H 286.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5D38CF
RGBrgb(93, 56, 207)
HSLhsl(255, 61%, 52%)
HSVhsv(255, 73%, 81%)
CMYKcmyk(55.1%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.22, 53.33, -72.18)
CIE-LCHlch(37.22, 89.75, 306.46°)
OKLaboklab(48.24% 0.0608 -0.2077)
OKLCHoklch(48.24% 0.216 286.3)
XYZxyz(17.1875, 9.6595, 59.9782)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38CF #AACF38
analogous
#385FCF #5D38CF #A938CF
triadic
#5D38CF #CF5D38 #38CF5D
tetradic
#5D38CF #CF385F #AACF38 #38CFA9
square
#5D38CF #CF385F #AACF38 #38CFA9
split-complementary
#5D38CF #CFA938 #5FCF38
monochromatic
#301B71 #4527A3 #5D38CF #8569DB #AD9BE7

Accessibility & contrast

On white

7.16
#5D38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D38CF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38CF#FFFFFF#000000##FFFFFF
##5D38CF1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#2A6180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d38cf;
/* rgb */ color: rgb(93, 56, 207);
/* oklch */ color: oklch(48.2% 0.216 286.3);
Tailwind
colors: {
  custom: {
    50: '#9672df',
    500: '#5d38cf',
    950: '#000000',
  },
}
SCSS
$custom: #5d38cf;
$custom-light: #9672df;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38cf",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 254.702,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48243,
    "c": 0.21644,
    "h": 286.3
  },
  "luminance": 0.0966
}

Semantic roles & 50–950 ramp

primary
#5D38CF
secondary
#C2D390
accent
#E444BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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