#5E35B9#5E35B9

#5E35B9 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.194 H 291.0°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5E35B9
RGBrgb(94, 53, 185)
HSLhsl(259, 55%, 47%)
HSVhsv(259, 71%, 73%)
CMYKcmyk(49.2%, 71.4%, 0%, 27.5%)
CIE-LABlab(34.86, 48.83, -63.19)
CIE-LCHlch(34.86, 79.85, 307.69°)
OKLaboklab(46% 0.0696 -0.1813)
OKLCHoklch(46% 0.194 291)
XYZxyz(14.6437, 8.4281, 46.7447)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B9 #90B935
analogous
#354EB9 #5E35B9 #A035B9
triadic
#5E35B9 #B95E35 #35B95E
tetradic
#5E35B9 #B9354E #90B935 #35B9A0
square
#5E35B9 #B9354E #90B935 #35B9A0
split-complementary
#5E35B9 #B9A035 #4EB935
monochromatic
#2E1A5A #462789 #5E35B9 #7F5BD0 #A48BDE

Accessibility & contrast

On white

7.82
#5E35B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5E35B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35B9
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B9#FFFFFF#000000##FFFFFF
##5E35B91.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#405773
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e35b9;
/* rgb */ color: rgb(94, 53, 185);
/* oklch */ color: oklch(46.0% 0.194 291.0);
Tailwind
colors: {
  custom: {
    50: '#9470cf',
    500: '#5e35b9',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b9;
$custom-light: #9470cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b9",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 185
  },
  "hsl": {
    "h": 258.636,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46001,
    "c": 0.19418,
    "h": 291
  },
  "luminance": 0.08429
}

Semantic roles & 50–950 ramp

primary
#5E35B9
secondary
#B2C882
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E35B9

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

Preview Lab → · Contrast checker → · Palette generator →

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