#5E38D9#5E38D9

#5E38D9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.228 H 285.2°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5E38D9
RGBrgb(94, 56, 217)
HSLhsl(254, 68%, 54%)
HSVhsv(254, 74%, 85%)
CMYKcmyk(56.7%, 74.2%, 0%, 14.9%)
CIE-LABlab(38.23, 56.29, -76.30)
CIE-LCHlch(38.23, 94.81, 306.42°)
OKLaboklab(49.25% 0.0599 -0.2197)
OKLCHoklch(49.25% 0.228 285.2)
XYZxyz(18.5509, 10.2167, 66.6267)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38D9 #B3D938
analogous
#3863D9 #5E38D9 #AE38D9
triadic
#5E38D9 #D95E38 #38D95E
tetradic
#5E38D9 #D93863 #B3D938 #38D9AE
square
#5E38D9 #D93863 #B3D938 #38D9AE
split-complementary
#5E38D9 #D9AE38 #63D938
monochromatic
#30187E #4422B2 #5E38D9 #886BE3 #B19FED

Accessibility & contrast

On white

6.90
#5E38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5E38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E38D9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38D9#FFFFFF#000000##FFFFFF
##5E38D91.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#1F6586
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e38d9;
/* rgb */ color: rgb(94, 56, 217);
/* oklch */ color: oklch(49.3% 0.228 285.2);
Tailwind
colors: {
  custom: {
    50: '#9973e6',
    500: '#5e38d9',
    950: '#000000',
  },
}
SCSS
$custom: #5e38d9;
$custom-light: #9973e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38d9",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 254.161,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4925,
    "c": 0.22774,
    "h": 285.2
  },
  "luminance": 0.10218
}

Semantic roles & 50–950 ramp

primary
#5E38D9
secondary
#C9D994
accent
#EB3DC2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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