#5E38D5#5E38D5

#5E38D5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.223 H 285.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5E38D5
RGBrgb(94, 56, 213)
HSLhsl(255, 65%, 53%)
HSVhsv(255, 74%, 84%)
CMYKcmyk(55.9%, 73.7%, 0%, 16.5%)
CIE-LABlab(37.86, 55.16, -74.60)
CIE-LCHlch(37.86, 92.78, 306.48°)
OKLaboklab(48.88% 0.0609 -0.2147)
OKLCHoklch(48.88% 0.223 285.8)
XYZxyz(18.0369, 10.0111, 63.9198)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38D5 #AFD538
analogous
#3861D5 #5E38D5 #AC38D5
triadic
#5E38D5 #D55E38 #38D55E
tetradic
#5E38D5 #D53861 #AFD538 #38D5AC
square
#5E38D5 #D53861 #AFD538 #38D5AC
split-complementary
#5E38D5 #D5AC38 #61D538
monochromatic
#311A79 #4524AC #5E38D5 #876BE0 #B09DEA

Accessibility & contrast

On white

6.99
#5E38D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5E38D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E38D5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38D5#FFFFFF#000000##FFFFFF
##5E38D51.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDA
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#256484
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e38d5;
/* rgb */ color: rgb(94, 56, 213);
/* oklch */ color: oklch(48.9% 0.223 285.8);
Tailwind
colors: {
  custom: {
    50: '#9873e3',
    500: '#5e38d5',
    950: '#000000',
  },
}
SCSS
$custom: #5e38d5;
$custom-light: #9873e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38d5",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 254.522,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48881,
    "c": 0.22321,
    "h": 285.8
  },
  "luminance": 0.10012
}

Semantic roles & 50–950 ramp

primary
#5E38D5
secondary
#C6D692
accent
#E840BF
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E38D5

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

Preview Lab → · Contrast checker → · Palette generator →

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