#5E3BB2#5E3BB2

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

Color values

HEX#5E3BB2
RGBrgb(94, 59, 178)
HSLhsl(258, 50%, 46%)
HSVhsv(258, 67%, 70%)
CMYKcmyk(47.2%, 66.9%, 0%, 30.2%)
CIE-LABlab(35.44, 43.66, -58.09)
CIE-LCHlch(35.44, 72.67, 306.93°)
OKLaboklab(46.24% 0.065 -0.1663)
OKLCHoklch(46.24% 0.179 291.3)
XYZxyz(14.2137, 8.7215, 43.0453)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3BB2 #8FB23B
analogous
#3B54B2 #5E3BB2 #9A3BB2
triadic
#5E3BB2 #B25E3B #3BB25E
tetradic
#5E3BB2 #B23B54 #8FB23B #3BB29A
square
#5E3BB2 #B23B54 #8FB23B #3BB29A
split-complementary
#5E3BB2 #B29A3B #54B23B
monochromatic
#2D1D56 #462C84 #5E3BB2 #7F60CA #A48EDA

Accessibility & contrast

On white

7.65
#5E3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E3BB2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3BB2#FFFFFF#000000##FFFFFF
##5E3BB21.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e3bb2;
/* rgb */ color: rgb(94, 59, 178);
/* oklch */ color: oklch(46.2% 0.179 291.3);
Tailwind
colors: {
  custom: {
    50: '#9373ca',
    500: '#5e3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5e3bb2;
$custom-light: #9373ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3bb2",
  "rgb": {
    "r": 94,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 257.647,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4624,
    "c": 0.17858,
    "h": 291.3
  },
  "luminance": 0.08722
}

Semantic roles & 50–950 ramp

primary
#5E3BB2
secondary
#B2C485
accent
#DA4EB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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