#5E37D4#5E37D4

#5E37D4 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.223 H 286.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5E37D4
RGBrgb(94, 55, 212)
HSLhsl(255, 65%, 52%)
HSVhsv(255, 74%, 83%)
CMYKcmyk(55.7%, 74.1%, 0%, 16.9%)
CIE-LABlab(37.60, 55.37, -74.46)
CIE-LCHlch(37.60, 92.79, 306.64°)
OKLaboklab(48.67% 0.0618 -0.2143)
OKLCHoklch(48.67% 0.223 286.1)
XYZxyz(17.8624, 9.8645, 63.2374)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37D4 #ADD437
analogous
#375FD4 #5E37D4 #AC37D4
triadic
#5E37D4 #D45E37 #37D45E
tetradic
#5E37D4 #D4375F #ADD437 #37D4AC
square
#5E37D4 #D4375F #ADD437 #37D4AC
split-complementary
#5E37D4 #D4AC37 #5FD437
monochromatic
#311A77 #4524A9 #5E37D4 #8769DF #AF9CEA

Accessibility & contrast

On white

7.06
#5E37D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5E37D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37D4
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37D4#FFFFFF#000000##FFFFFF
##5E37D41.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD9
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#276383
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e37d4;
/* rgb */ color: rgb(94, 55, 212);
/* oklch */ color: oklch(48.7% 0.223 286.1);
Tailwind
colors: {
  custom: {
    50: '#9872e2',
    500: '#5e37d4',
    950: '#000000',
  },
}
SCSS
$custom: #5e37d4;
$custom-light: #9872e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37d4",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 212
  },
  "hsl": {
    "h": 254.904,
    "s": 64.609,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48668,
    "c": 0.22306,
    "h": 286.1
  },
  "luminance": 0.09866
}

Semantic roles & 50–950 ramp

primary
#5E37D4
secondary
#C5D691
accent
#E840BE
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E37D4

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

Preview Lab → · Contrast checker → · Palette generator →

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