#5E38CF#5E38CF

#5E38CF is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.216 H 286.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5E38CF
RGBrgb(94, 56, 207)
HSLhsl(255, 61%, 52%)
HSVhsv(255, 73%, 81%)
CMYKcmyk(54.6%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.32, 53.47, -72.02)
CIE-LCHlch(37.32, 89.70, 306.59°)
OKLaboklab(48.33% 0.0623 -0.2072)
OKLCHoklch(48.33% 0.216 286.7)
XYZxyz(17.2894, 9.7121, 59.9830)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38CF #A9CF38
analogous
#385ECF #5E38CF #AA38CF
triadic
#5E38CF #CF5E38 #38CF5E
tetradic
#5E38CF #CF385E #A9CF38 #38CFAA
square
#5E38CF #CF385E #A9CF38 #38CFAA
split-complementary
#5E38CF #CFAA38 #5ECF38
monochromatic
#311B71 #4627A3 #5E38CF #8669DB #AE9BE7

Accessibility & contrast

On white

7.14
#5E38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5E38CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38CF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38CF#FFFFFF#000000##FFFFFF
##5E38CF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#2D6180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e38cf;
/* rgb */ color: rgb(94, 56, 207);
/* oklch */ color: oklch(48.3% 0.216 286.7);
Tailwind
colors: {
  custom: {
    50: '#9772df',
    500: '#5e38cf',
    950: '#000000',
  },
}
SCSS
$custom: #5e38cf;
$custom-light: #9772df;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38cf",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 255.099,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48334,
    "c": 0.21635,
    "h": 286.7
  },
  "luminance": 0.09713
}

Semantic roles & 50–950 ramp

primary
#5E38CF
secondary
#C2D390
accent
#E444BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5E38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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