#5D38BA#5D38BA

#5D38BA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.192 H 289.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5D38BA
RGBrgb(93, 56, 186)
HSLhsl(257, 54%, 47%)
HSVhsv(257, 70%, 73%)
CMYKcmyk(50%, 69.9%, 0%, 27.1%)
CIE-LABlab(35.40, 47.37, -62.90)
CIE-LCHlch(35.40, 78.74, 306.99°)
OKLaboklab(46.39% 0.0652 -0.1805)
OKLCHoklch(46.39% 0.192 289.9)
XYZxyz(14.7888, 8.7001, 47.3449)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38BA #95BA38
analogous
#3854BA #5D38BA #9E38BA
triadic
#5D38BA #BA5D38 #38BA5D
tetradic
#5D38BA #BA3854 #95BA38 #38BA9E
square
#5D38BA #BA3854 #95BA38 #38BA9E
split-complementary
#5D38BA #BA9E38 #54BA38
monochromatic
#2E1C5C #452A8B #5D38BA #8060CF #A58FDD

Accessibility & contrast

On white

7.66
#5D38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D38BA
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38BA#FFFFFF#000000##FFFFFF
##5D38BA1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#3D5975
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d38ba;
/* rgb */ color: rgb(93, 56, 186);
/* oklch */ color: oklch(46.4% 0.192 289.9);
Tailwind
colors: {
  custom: {
    50: '#9372d0',
    500: '#5d38ba',
    950: '#000000',
  },
}
SCSS
$custom: #5d38ba;
$custom-light: #9372d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38ba",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 257.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46388,
    "c": 0.19189,
    "h": 289.9
  },
  "luminance": 0.08701
}

Semantic roles & 50–950 ramp

primary
#5D38BA
secondary
#B5C886
accent
#DD4BB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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