#5E38CC#5E38CC

#5E38CC is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.213 H 287.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5E38CC
RGBrgb(94, 56, 204)
HSLhsl(255, 59%, 51%)
HSVhsv(255, 73%, 80%)
CMYKcmyk(53.9%, 72.5%, 0%, 20%)
CIE-LABlab(37.05, 52.63, -70.72)
CIE-LCHlch(37.05, 88.15, 306.65°)
OKLaboklab(48.06% 0.063 -0.2034)
OKLCHoklch(48.06% 0.213 287.2)
XYZxyz(16.9261, 9.5668, 58.0697)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38CC #A6CC38
analogous
#385CCC #5E38CC #A838CC
triadic
#5E38CC #CC5E38 #38CC5E
tetradic
#5E38CC #CC385C #A6CC38 #38CCA8
square
#5E38CC #CC385C #A6CC38 #38CCA8
split-complementary
#5E38CC #CCA838 #5CCC38
monochromatic
#311C6E #47299E #5E38CC #8569D8 #AD99E5

Accessibility & contrast

On white

7.21
#5E38CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5E38CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38CC
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38CC#FFFFFF#000000##FFFFFF
##5E38CC1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#30607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e38cc;
/* rgb */ color: rgb(94, 56, 204);
/* oklch */ color: oklch(48.1% 0.213 287.2);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5e38cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e38cc;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38cc",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 255.405,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48064,
    "c": 0.21291,
    "h": 287.2
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#5E38CC
secondary
#C0D18F
accent
#E245BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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