#5E35BA#5E35BA

#5E35BA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.195 H 290.8°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5E35BA
RGBrgb(94, 53, 186)
HSLhsl(258, 56%, 47%)
HSVhsv(258, 72%, 73%)
CMYKcmyk(49.5%, 71.5%, 0%, 27.1%)
CIE-LABlab(34.94, 49.10, -63.64)
CIE-LCHlch(34.94, 80.38, 307.65°)
OKLaboklab(46.09% 0.0694 -0.1826)
OKLCHoklch(46.09% 0.195 290.8)
XYZxyz(14.7496, 8.4705, 47.3027)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35BA #91BA35
analogous
#354FBA #5E35BA #A135BA
triadic
#5E35BA #BA5E35 #35BA5E
tetradic
#5E35BA #BA354F #91BA35 #35BAA1
square
#5E35BA #BA354F #91BA35 #35BAA1
split-complementary
#5E35BA #BAA135 #4FBA35
monochromatic
#2E1A5B #46278A #5E35BA #805CD0 #A58BDE

Accessibility & contrast

On white

7.79
#5E35BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E35BA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35BA#FFFFFF#000000##FFFFFF
##5E35BA1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#3F5874
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e35ba;
/* rgb */ color: rgb(94, 53, 186);
/* oklch */ color: oklch(46.1% 0.195 290.8);
Tailwind
colors: {
  custom: {
    50: '#9470d0',
    500: '#5e35ba',
    950: '#000000',
  },
}
SCSS
$custom: #5e35ba;
$custom-light: #9470d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35ba",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 186
  },
  "hsl": {
    "h": 258.496,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46088,
    "c": 0.19534,
    "h": 290.8
  },
  "luminance": 0.08471
}

Semantic roles & 50–950 ramp

primary
#5E35BA
secondary
#B3C882
accent
#DF49B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E35BA

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

Preview Lab → · Contrast checker → · Palette generator →

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