#5E37B2#5E37B2

#5E37B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.184 H 292.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5E37B2
RGBrgb(94, 55, 178)
HSLhsl(259, 53%, 46%)
HSVhsv(259, 69%, 70%)
CMYKcmyk(47.2%, 69.1%, 0%, 30.2%)
CIE-LABlab(34.65, 45.83, -59.38)
CIE-LCHlch(34.65, 75.01, 307.66°)
OKLaboklab(45.67% 0.069 -0.1701)
OKLCHoklch(45.67% 0.184 292.1)
XYZxyz(14.0159, 8.3259, 42.9794)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37B2 #8BB237
analogous
#374EB2 #5E37B2 #9B37B2
triadic
#5E37B2 #B25E37 #37B25E
tetradic
#5E37B2 #B2374E #8BB237 #37B29B
square
#5E37B2 #B2374E #8BB237 #37B29B
split-complementary
#5E37B2 #B29B37 #4EB237
monochromatic
#2D1A54 #452983 #5E37B2 #7E5ACC #A389DB

Accessibility & contrast

On white

7.88
#5E37B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5E37B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37B2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37B2#FFFFFF#000000##FFFFFF
##5E37B21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#445670
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e37b2;
/* rgb */ color: rgb(94, 55, 178);
/* oklch */ color: oklch(45.7% 0.184 292.1);
Tailwind
colors: {
  custom: {
    50: '#9371ca',
    500: '#5e37b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e37b2;
$custom-light: #9371ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37b2",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 259.024,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45674,
    "c": 0.18356,
    "h": 292.1
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#5E37B2
secondary
#AFC580
accent
#DC4CAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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