#5E38BE#5E38BE

#5E38BE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.197 H 289.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5E38BE
RGBrgb(94, 56, 190)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 71%, 75%)
CMYKcmyk(50.5%, 70.5%, 0%, 25.5%)
CIE-LABlab(35.84, 48.67, -64.53)
CIE-LCHlch(35.84, 80.83, 307.03°)
OKLaboklab(46.83% 0.0659 -0.1852)
OKLCHoklch(46.83% 0.197 289.6)
XYZxyz(15.3218, 8.9251, 49.6206)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38BE #98BE38
analogous
#3855BE #5E38BE #A138BE
triadic
#5E38BE #BE5E38 #38BE5E
tetradic
#5E38BE #BE3855 #98BE38 #38BEA1
square
#5E38BE #BE3855 #98BE38 #38BEA1
split-complementary
#5E38BE #BEA138 #55BE38
monochromatic
#2F1C5F #472A8F #5E38BE #8262D1 #A892DF

Accessibility & contrast

On white

7.54
#5E38BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5E38BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38BE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38BE#FFFFFF#000000##FFFFFF
##5E38BE1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#3C5B77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e38be;
/* rgb */ color: rgb(94, 56, 190);
/* oklch */ color: oklch(46.8% 0.197 289.6);
Tailwind
colors: {
  custom: {
    50: '#9572d3',
    500: '#5e38be',
    950: '#000000',
  },
}
SCSS
$custom: #5e38be;
$custom-light: #9572d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38be",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 257.015,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.1966,
    "h": 289.6
  },
  "luminance": 0.08926
}

Semantic roles & 50–950 ramp

primary
#5E38BE
secondary
#B7CA88
accent
#DE4AB4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5E38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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