#5E38CA#5E38CA

#5E38CA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.211 H 287.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5E38CA
RGBrgb(94, 56, 202)
HSLhsl(256, 58%, 51%)
HSVhsv(256, 72%, 79%)
CMYKcmyk(53.5%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.88, 52.06, -69.85)
CIE-LCHlch(36.88, 87.12, 306.70°)
OKLaboklab(47.89% 0.0634 -0.2008)
OKLCHoklch(47.89% 0.211 287.5)
XYZxyz(16.6878, 9.4714, 56.8145)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38CA #A4CA38
analogous
#385BCA #5E38CA #A738CA
triadic
#5E38CA #CA5E38 #38CA5E
tetradic
#5E38CA #CA385B #A4CA38 #38CAA7
square
#5E38CA #CA385B #A4CA38 #38CAA7
split-complementary
#5E38CA #CAA738 #5BCA38
monochromatic
#311D6B #47299B #5E38CA #8568D7 #AC99E4

Accessibility & contrast

On white

7.26
#5E38CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5E38CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38CA
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38CA#FFFFFF#000000##FFFFFF
##5E38CA1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#325F7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e38ca;
/* rgb */ color: rgb(94, 56, 202);
/* oklch */ color: oklch(47.9% 0.211 287.5);
Tailwind
colors: {
  custom: {
    50: '#9672db',
    500: '#5e38ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e38ca;
$custom-light: #9672db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38ca",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 255.616,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47885,
    "c": 0.2106,
    "h": 287.5
  },
  "luminance": 0.09472
}

Semantic roles & 50–950 ramp

primary
#5E38CA
secondary
#BECF8E
accent
#E147B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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