#5E38C8#5E38C8

#5E38C8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.208 H 287.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5E38C8
RGBrgb(94, 56, 200)
HSLhsl(256, 57%, 50%)
HSVhsv(256, 72%, 78%)
CMYKcmyk(53%, 72%, 0%, 21.6%)
CIE-LABlab(36.70, 51.50, -68.97)
CIE-LCHlch(36.70, 86.08, 306.75°)
OKLaboklab(47.71% 0.0638 -0.1983)
OKLCHoklch(47.71% 0.208 287.8)
XYZxyz(16.4525, 9.3773, 55.5755)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38C8 #A2C838
analogous
#385AC8 #5E38C8 #A638C8
triadic
#5E38C8 #C85E38 #38C85E
tetradic
#5E38C8 #C8385A #A2C838 #38C8A6
square
#5E38C8 #C8385A #A2C838 #38C8A6
split-complementary
#5E38C8 #C8A638 #5AC838
monochromatic
#311D69 #472A99 #5E38C8 #8568D5 #AC98E3

Accessibility & contrast

On white

7.30
#5E38C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5E38C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38C8
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38C8#FFFFFF#000000##FFFFFF
##5E38C81.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#345F7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e38c8;
/* rgb */ color: rgb(94, 56, 200);
/* oklch */ color: oklch(47.7% 0.208 287.8);
Tailwind
colors: {
  custom: {
    50: '#9672da',
    500: '#5e38c8',
    950: '#000000',
  },
}
SCSS
$custom: #5e38c8;
$custom-light: #9672da;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38c8",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 255.833,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47706,
    "c": 0.20829,
    "h": 287.8
  },
  "luminance": 0.09378
}

Semantic roles & 50–950 ramp

primary
#5E38C8
secondary
#BDCE8E
accent
#E048B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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