#5E38DA#5E38DA

#5E38DA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.229 H 285.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5E38DA
RGBrgb(94, 56, 218)
HSLhsl(254, 69%, 54%)
HSVhsv(254, 74%, 85%)
CMYKcmyk(56.9%, 74.3%, 0%, 14.5%)
CIE-LABlab(38.32, 56.57, -76.72)
CIE-LCHlch(38.32, 95.32, 306.40°)
OKLaboklab(49.34% 0.0597 -0.221)
OKLCHoklch(49.34% 0.229 285.1)
XYZxyz(18.6813, 10.2689, 67.3138)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38DA #B4DA38
analogous
#3863DA #5E38DA #AF38DA
triadic
#5E38DA #DA5E38 #38DA5E
tetradic
#5E38DA #DA3863 #B4DA38 #38DAAF
square
#5E38DA #DA3863 #B4DA38 #38DAAF
split-complementary
#5E38DA #DAAF38 #63DA38
monochromatic
#301880 #4421B3 #5E38DA #886CE4 #B19FED

Accessibility & contrast

On white

6.88
#5E38DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5E38DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E38DA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38DA#FFFFFF#000000##FFFFFF
##5E38DA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDF
Deuteranopia (green-blind)
#0055D7
Tritanopia (blue-blind)
#1D6687
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e38da;
/* rgb */ color: rgb(94, 56, 218);
/* oklch */ color: oklch(49.3% 0.229 285.1);
Tailwind
colors: {
  custom: {
    50: '#9973e7',
    500: '#5e38da',
    950: '#000000',
  },
}
SCSS
$custom: #5e38da;
$custom-light: #9973e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38da",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 254.074,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49343,
    "c": 0.22887,
    "h": 285.1
  },
  "luminance": 0.1027
}

Semantic roles & 50–950 ramp

primary
#5E38DA
secondary
#C9DA94
accent
#EB3CC2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E38DA

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

Preview Lab → · Contrast checker → · Palette generator →

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