#5D38BE#5D38BE

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

Color values

HEX#5D38BE
RGBrgb(93, 56, 190)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 71%, 75%)
CMYKcmyk(51.1%, 70.5%, 0%, 25.5%)
CIE-LABlab(35.74, 48.51, -64.70)
CIE-LCHlch(35.74, 80.87, 306.86°)
OKLaboklab(46.73% 0.0644 -0.1858)
OKLCHoklch(46.73% 0.197 289.1)
XYZxyz(15.2199, 8.8725, 49.6158)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38BE #99BE38
analogous
#3856BE #5D38BE #A038BE
triadic
#5D38BE #BE5D38 #38BE5D
tetradic
#5D38BE #BE3856 #99BE38 #38BEA0
square
#5D38BE #BE3856 #99BE38 #38BEA0
split-complementary
#5D38BE #BEA038 #56BE38
monochromatic
#2F1C5F #462A8F #5D38BE #8162D1 #A792DF

Accessibility & contrast

On white

7.57
#5D38BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D38BE
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38BE#FFFFFF#000000##FFFFFF
##5D38BE1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d38be;
/* rgb */ color: rgb(93, 56, 190);
/* oklch */ color: oklch(46.7% 0.197 289.1);
Tailwind
colors: {
  custom: {
    50: '#9472d3',
    500: '#5d38be',
    950: '#000000',
  },
}
SCSS
$custom: #5d38be;
$custom-light: #9472d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38be",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 256.567,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46733,
    "c": 0.19663,
    "h": 289.1
  },
  "luminance": 0.08873
}

Semantic roles & 50–950 ramp

primary
#5D38BE
secondary
#B8CA88
accent
#DE4AB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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