#5E38BB#5E38BB

#5E38BB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.193 H 290.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5E38BB
RGBrgb(94, 56, 187)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 70%, 73%)
CMYKcmyk(49.7%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.59, 47.83, -63.18)
CIE-LCHlch(35.59, 79.24, 307.13°)
OKLaboklab(46.57% 0.0664 -0.1813)
OKLCHoklch(46.57% 0.193 290.1)
XYZxyz(14.9973, 8.7953, 47.9115)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38BB #95BB38
analogous
#3853BB #5E38BB #A038BB
triadic
#5E38BB #BB5E38 #38BB5E
tetradic
#5E38BB #BB3853 #95BB38 #38BBA0
square
#5E38BB #BB3853 #95BB38 #38BBA0
split-complementary
#5E38BB #BBA038 #53BB38
monochromatic
#2F1C5D #462A8C #5E38BB #8161D0 #A690DE

Accessibility & contrast

On white

7.61
#5E38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5E38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38BB
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38BB#FFFFFF#000000##FFFFFF
##5E38BB1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#3E5A75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e38bb;
/* rgb */ color: rgb(94, 56, 187);
/* oklch */ color: oklch(46.6% 0.193 290.1);
Tailwind
colors: {
  custom: {
    50: '#9472d0',
    500: '#5e38bb',
    950: '#000000',
  },
}
SCSS
$custom: #5e38bb;
$custom-light: #9472d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38bb",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 257.405,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46572,
    "c": 0.19306,
    "h": 290.1
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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