#5E38BD#5E38BD

#5E38BD is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.195 H 289.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5E38BD
RGBrgb(94, 56, 189)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 70%, 74%)
CMYKcmyk(50.3%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.76, 48.39, -64.08)
CIE-LCHlch(35.76, 80.30, 307.06°)
OKLaboklab(46.74% 0.0661 -0.1839)
OKLCHoklch(46.74% 0.195 289.8)
XYZxyz(15.2129, 8.8815, 49.0470)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38BD #97BD38
analogous
#3854BD #5E38BD #A038BD
triadic
#5E38BD #BD5E38 #38BD5E
tetradic
#5E38BD #BD3854 #97BD38 #38BDA0
square
#5E38BD #BD3854 #97BD38 #38BDA0
split-complementary
#5E38BD #BDA038 #54BD38
monochromatic
#2F1C5F #472A8E #5E38BD #8162D0 #A791DE

Accessibility & contrast

On white

7.56
#5E38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E38BD
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38BD#FFFFFF#000000##FFFFFF
##5E38BD1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#3D5A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e38bd;
/* rgb */ color: rgb(94, 56, 189);
/* oklch */ color: oklch(46.7% 0.195 289.8);
Tailwind
colors: {
  custom: {
    50: '#9472d2',
    500: '#5e38bd',
    950: '#000000',
  },
}
SCSS
$custom: #5e38bd;
$custom-light: #9472d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38bd",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 257.143,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46743,
    "c": 0.19542,
    "h": 289.8
  },
  "luminance": 0.08882
}

Semantic roles & 50–950 ramp

primary
#5E38BD
secondary
#B7C987
accent
#DE4AB4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5E38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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