#5E38BC#5E38BC

#5E38BC is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.194 H 289.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5E38BC
RGBrgb(94, 56, 188)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 70%, 74%)
CMYKcmyk(50%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.67, 48.11, -63.63)
CIE-LCHlch(35.67, 79.77, 307.09°)
OKLaboklab(46.66% 0.0663 -0.1826)
OKLCHoklch(46.66% 0.194 289.9)
XYZxyz(15.1048, 8.8382, 48.4773)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38BC #96BC38
analogous
#3854BC #5E38BC #A038BC
triadic
#5E38BC #BC5E38 #38BC5E
tetradic
#5E38BC #BC3854 #96BC38 #38BCA0
square
#5E38BC #BC3854 #96BC38 #38BCA0
split-complementary
#5E38BC #BCA038 #54BC38
monochromatic
#2F1C5E #462A8D #5E38BC #8161D0 #A790DE

Accessibility & contrast

On white

7.59
#5E38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5E38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38BC
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38BC#FFFFFF#000000##FFFFFF
##5E38BC1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#3E5A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e38bc;
/* rgb */ color: rgb(94, 56, 188);
/* oklch */ color: oklch(46.7% 0.194 289.9);
Tailwind
colors: {
  custom: {
    50: '#9472d1',
    500: '#5e38bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e38bc;
$custom-light: #9472d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38bc",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 257.273,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46657,
    "c": 0.19425,
    "h": 289.9
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

primary
#5E38BC
secondary
#B6C987
accent
#DD4AB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5E38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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