#5E38D0#5E38D0

#5E38D0 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.4% C 0.218 H 286.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5E38D0
RGBrgb(94, 56, 208)
HSLhsl(255, 62%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(54.8%, 73.1%, 0%, 18.4%)
CIE-LABlab(37.41, 53.75, -72.45)
CIE-LCHlch(37.41, 90.22, 306.57°)
OKLaboklab(48.43% 0.062 -0.2085)
OKLCHoklch(48.43% 0.218 286.6)
XYZxyz(17.4120, 9.7611, 60.6289)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38D0 #AAD038
analogous
#385ED0 #5E38D0 #AA38D0
triadic
#5E38D0 #D05E38 #38D05E
tetradic
#5E38D0 #D0385E #AAD038 #38D0AA
square
#5E38D0 #D0385E #AAD038 #38D0AA
split-complementary
#5E38D0 #D0AA38 #5ED038
monochromatic
#311B73 #4627A4 #5E38D0 #866ADC #AE9BE7

Accessibility & contrast

On white

7.11
#5E38D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E38D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38D0
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38D0#FFFFFF#000000##FFFFFF
##5E38D01.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD4
Deuteranopia (green-blind)
#0054CD
Tritanopia (blue-blind)
#2C6281
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e38d0;
/* rgb */ color: rgb(94, 56, 208);
/* oklch */ color: oklch(48.4% 0.218 286.6);
Tailwind
colors: {
  custom: {
    50: '#9772e0',
    500: '#5e38d0',
    950: '#000000',
  },
}
SCSS
$custom: #5e38d0;
$custom-light: #9772e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38d0",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 255,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48425,
    "c": 0.21751,
    "h": 286.6
  },
  "luminance": 0.09762
}

Semantic roles & 50–950 ramp

primary
#5E38D0
secondary
#C3D391
accent
#E543BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5E38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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