#5E37D2#5E37D2

#5E37D2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.221 H 286.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5E37D2
RGBrgb(94, 55, 210)
HSLhsl(255, 63%, 52%)
HSVhsv(255, 74%, 82%)
CMYKcmyk(55.2%, 73.8%, 0%, 17.6%)
CIE-LABlab(37.42, 54.81, -73.60)
CIE-LCHlch(37.42, 91.77, 306.68°)
OKLaboklab(48.48% 0.0623 -0.2118)
OKLCHoklch(48.48% 0.221 286.4)
XYZxyz(17.6117, 9.7642, 61.9169)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37D2 #ABD237
analogous
#375ED2 #5E37D2 #AC37D2
triadic
#5E37D2 #D25E37 #37D25E
tetradic
#5E37D2 #D2375E #ABD237 #37D2AC
square
#5E37D2 #D2375E #ABD237 #37D2AC
split-complementary
#5E37D2 #D2AC37 #5ED237
monochromatic
#311A74 #4625A6 #5E37D2 #8669DD #AE9BE8

Accessibility & contrast

On white

7.11
#5E37D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E37D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37D2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37D2#FFFFFF#000000##FFFFFF
##5E37D21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#296282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e37d2;
/* rgb */ color: rgb(94, 55, 210);
/* oklch */ color: oklch(48.5% 0.221 286.4);
Tailwind
colors: {
  custom: {
    50: '#9872e1',
    500: '#5e37d2',
    950: '#000000',
  },
}
SCSS
$custom: #5e37d2;
$custom-light: #9872e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37d2",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 210
  },
  "hsl": {
    "h": 255.097,
    "s": 63.265,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48484,
    "c": 0.2208,
    "h": 286.4
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#5E37D2
secondary
#C3D490
accent
#E641BD
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5E37D2

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

Preview Lab → · Contrast checker → · Palette generator →

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