#5D38BF#5D38BF

#5D38BF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.198 H 289.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5D38BF
RGBrgb(93, 56, 191)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 75%)
CMYKcmyk(51.3%, 70.7%, 0%, 25.1%)
CIE-LABlab(35.82, 48.79, -65.15)
CIE-LCHlch(35.82, 81.39, 306.83°)
OKLaboklab(46.82% 0.0642 -0.1871)
OKLCHoklch(46.82% 0.198 289)
XYZxyz(15.3296, 8.9164, 50.1934)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38BF #9ABF38
analogous
#3857BF #5D38BF #A038BF
triadic
#5D38BF #BF5D38 #38BF5D
tetradic
#5D38BF #BF3857 #9ABF38 #38BFA0
square
#5D38BF #BF3857 #9ABF38 #38BFA0
split-complementary
#5D38BF #BFA038 #57BF38
monochromatic
#2F1C60 #462A90 #5D38BF #8163D1 #A792DF

Accessibility & contrast

On white

7.54
#5D38BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5D38BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38BF
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38BF#FFFFFF#000000##FFFFFF
##5D38BF1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0051BC
Tritanopia (blue-blind)
#395B78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d38bf;
/* rgb */ color: rgb(93, 56, 191);
/* oklch */ color: oklch(46.8% 0.198 289.0);
Tailwind
colors: {
  custom: {
    50: '#9472d3',
    500: '#5d38bf',
    950: '#000000',
  },
}
SCSS
$custom: #5d38bf;
$custom-light: #9472d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38bf",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 256.444,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4682,
    "c": 0.19781,
    "h": 289
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#5D38BF
secondary
#B8CA89
accent
#DE4AB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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