#5E3BB1#5E3BB1

#5E3BB1 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.177 H 291.5°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5E3BB1
RGBrgb(94, 59, 177)
HSLhsl(258, 50%, 46%)
HSVhsv(258, 67%, 69%)
CMYKcmyk(46.9%, 66.7%, 0%, 30.6%)
CIE-LABlab(35.36, 43.38, -57.63)
CIE-LCHlch(35.36, 72.13, 306.97°)
OKLaboklab(46.16% 0.0651 -0.165)
OKLCHoklch(46.16% 0.177 291.5)
XYZxyz(14.1136, 8.6814, 42.5185)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3BB1 #8EB13B
analogous
#3B53B1 #5E3BB1 #993BB1
triadic
#5E3BB1 #B15E3B #3BB15E
tetradic
#5E3BB1 #B13B53 #8EB13B #3BB199
square
#5E3BB1 #B13B53 #8EB13B #3BB199
split-complementary
#5E3BB1 #B1993B #53B13B
monochromatic
#2D1C55 #462C83 #5E3BB1 #7F5FCA #A48DD9

Accessibility & contrast

On white

7.67
#5E3BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5E3BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3BB1
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3BB1#FFFFFF#000000##FFFFFF
##5E3BB11.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#445871
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e3bb1;
/* rgb */ color: rgb(94, 59, 177);
/* oklch */ color: oklch(46.2% 0.177 291.5);
Tailwind
colors: {
  custom: {
    50: '#9373c9',
    500: '#5e3bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5e3bb1;
$custom-light: #9373c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3bb1",
  "rgb": {
    "r": 94,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 257.797,
    "s": 50,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46159,
    "c": 0.17735,
    "h": 291.5
  },
  "luminance": 0.08682
}

Semantic roles & 50–950 ramp

primary
#5E3BB1
secondary
#B1C484
accent
#DA4EB0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E3BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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