#5E35B7#5E35B7

#5E35B7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.192 H 291.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5E35B7
RGBrgb(94, 53, 183)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 72%)
CMYKcmyk(48.6%, 71%, 0%, 28.2%)
CIE-LABlab(34.69, 48.27, -62.28)
CIE-LCHlch(34.69, 78.80, 307.78°)
OKLaboklab(45.83% 0.07 -0.1786)
OKLCHoklch(45.83% 0.192 291.4)
XYZxyz(14.4340, 8.3442, 45.6406)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B7 #8EB735
analogous
#354DB7 #5E35B7 #9F35B7
triadic
#5E35B7 #B75E35 #35B75E
tetradic
#5E35B7 #B7354D #8EB735 #35B79F
square
#5E35B7 #B7354D #8EB735 #35B79F
split-complementary
#5E35B7 #B79F35 #4DB735
monochromatic
#2D1A58 #462788 #5E35B7 #7F5ACF #A489DD

Accessibility & contrast

On white

7.87
#5E35B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E35B7
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B7#FFFFFF#000000##FFFFFF
##5E35B71.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#415772
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e35b7;
/* rgb */ color: rgb(94, 53, 183);
/* oklch */ color: oklch(45.8% 0.192 291.4);
Tailwind
colors: {
  custom: {
    50: '#9470ce',
    500: '#5e35b7',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b7;
$custom-light: #9470ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b7",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 183
  },
  "hsl": {
    "h": 258.923,
    "s": 55.085,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45829,
    "c": 0.19184,
    "h": 291.4
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#5E35B7
secondary
#B1C781
accent
#DE49AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E35B7

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

Preview Lab → · Contrast checker → · Palette generator →

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