#5E38D2#5E38D2

#5E38D2 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.220 H 286.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5E38D2
RGBrgb(94, 56, 210)
HSLhsl(255, 63%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(55.2%, 73.3%, 0%, 17.6%)
CIE-LABlab(37.59, 54.32, -73.31)
CIE-LCHlch(37.59, 91.24, 306.53°)
OKLaboklab(48.61% 0.0616 -0.211)
OKLCHoklch(48.61% 0.22 286.3)
XYZxyz(17.6596, 9.8602, 61.9329)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38D2 #ACD238
analogous
#385FD2 #5E38D2 #AB38D2
triadic
#5E38D2 #D25E38 #38D25E
tetradic
#5E38D2 #D2385F #ACD238 #38D2AB
square
#5E38D2 #D2385F #ACD238 #38D2AB
split-complementary
#5E38D2 #D2AB38 #5FD238
monochromatic
#311A75 #4626A7 #5E38D2 #866ADD #AF9CE9

Accessibility & contrast

On white

7.07
#5E38D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5E38D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38D2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38D2#FFFFFF#000000##FFFFFF
##5E38D21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#296282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e38d2;
/* rgb */ color: rgb(94, 56, 210);
/* oklch */ color: oklch(48.6% 0.220 286.3);
Tailwind
colors: {
  custom: {
    50: '#9773e1',
    500: '#5e38d2',
    950: '#000000',
  },
}
SCSS
$custom: #5e38d2;
$custom-light: #9773e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38d2",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 254.805,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48607,
    "c": 0.21979,
    "h": 286.3
  },
  "luminance": 0.09861
}

Semantic roles & 50–950 ramp

primary
#5E38D2
secondary
#C4D591
accent
#E642BE
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5E38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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