#5E37D5#5E37D5

#5E37D5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.224 H 285.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5E37D5
RGBrgb(94, 55, 213)
HSLhsl(255, 65%, 53%)
HSVhsv(255, 74%, 84%)
CMYKcmyk(55.9%, 74.2%, 0%, 16.5%)
CIE-LABlab(37.69, 55.65, -74.88)
CIE-LCHlch(37.69, 93.30, 306.62°)
OKLaboklab(48.76% 0.0616 -0.2156)
OKLCHoklch(48.76% 0.224 285.9)
XYZxyz(17.9889, 9.9151, 63.9038)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37D5 #AED537
analogous
#375FD5 #5E37D5 #AD37D5
triadic
#5E37D5 #D55E37 #37D55E
tetradic
#5E37D5 #D5375F #AED537 #37D5AD
square
#5E37D5 #D5375F #AED537 #37D5AD
split-complementary
#5E37D5 #D5AD37 #5FD537
monochromatic
#311978 #4524AB #5E37D5 #876AE0 #AF9CEA

Accessibility & contrast

On white

7.04
#5E37D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5E37D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37D5
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37D5#FFFFFF#000000##FFFFFF
##5E37D51.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDA
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#256384
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e37d5;
/* rgb */ color: rgb(94, 55, 213);
/* oklch */ color: oklch(48.8% 0.224 285.9);
Tailwind
colors: {
  custom: {
    50: '#9872e3',
    500: '#5e37d5',
    950: '#000000',
  },
}
SCSS
$custom: #5e37d5;
$custom-light: #9872e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37d5",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 213
  },
  "hsl": {
    "h": 254.81,
    "s": 65.289,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4876,
    "c": 0.2242,
    "h": 285.9
  },
  "luminance": 0.09916
}

Semantic roles & 50–950 ramp

primary
#5E37D5
secondary
#C5D692
accent
#E840BF
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E37D5

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

Preview Lab → · Contrast checker → · Palette generator →

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