#5E38C4#5E38C4

#5E38C4 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.204 H 288.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5E38C4
RGBrgb(94, 56, 196)
HSLhsl(256, 56%, 49%)
HSVhsv(256, 71%, 77%)
CMYKcmyk(52%, 71.4%, 0%, 23.1%)
CIE-LABlab(36.35, 50.37, -67.21)
CIE-LCHlch(36.35, 83.99, 306.85°)
OKLaboklab(47.35% 0.0647 -0.1931)
OKLCHoklch(47.35% 0.204 288.5)
XYZxyz(15.9912, 9.1928, 53.1456)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38C4 #9EC438
analogous
#3858C4 #5E38C4 #A438C4
triadic
#5E38C4 #C45E38 #38C45E
tetradic
#5E38C4 #C43858 #9EC438 #38C4A4
square
#5E38C4 #C43858 #9EC438 #38C4A4
split-complementary
#5E38C4 #C4A438 #58C438
monochromatic
#301D65 #472A94 #5E38C4 #8466D3 #AA96E1

Accessibility & contrast

On white

7.40
#5E38C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5E38C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38C4
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38C4#FFFFFF#000000##FFFFFF
##5E38C41.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#375D7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5e38c4;
/* rgb */ color: rgb(94, 56, 196);
/* oklch */ color: oklch(47.4% 0.204 288.5);
Tailwind
colors: {
  custom: {
    50: '#9572d7',
    500: '#5e38c4',
    950: '#000000',
  },
}
SCSS
$custom: #5e38c4;
$custom-light: #9572d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38c4",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 256.286,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47353,
    "c": 0.20363,
    "h": 288.5
  },
  "luminance": 0.09194
}

Semantic roles & 50–950 ramp

primary
#5E38C4
secondary
#BBCC8C
accent
#DF49B6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5E38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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