#5E35B4#5E35B4

#5E35B4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.188 H 292.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5E35B4
RGBrgb(94, 53, 180)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(47.8%, 70.6%, 0%, 29.4%)
CIE-LABlab(34.44, 47.44, -60.92)
CIE-LCHlch(34.44, 77.21, 307.91°)
OKLaboklab(45.57% 0.0706 -0.1746)
OKLCHoklch(45.57% 0.188 292)
XYZxyz(14.1251, 8.2207, 44.0137)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B4 #8BB435
analogous
#354CB4 #5E35B4 #9D35B4
triadic
#5E35B4 #B45E35 #35B45E
tetradic
#5E35B4 #B4354C #8BB435 #35B49D
square
#5E35B4 #B4354C #8BB435 #35B49D
split-complementary
#5E35B4 #B49D35 #4CB435
monochromatic
#2D1955 #452785 #5E35B4 #7E58CE #A388DC

Accessibility & contrast

On white

7.94
#5E35B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5E35B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35B4
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B4#FFFFFF#000000##FFFFFF
##5E35B41.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#435571
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e35b4;
/* rgb */ color: rgb(94, 53, 180);
/* oklch */ color: oklch(45.6% 0.188 292.0);
Tailwind
colors: {
  custom: {
    50: '#9370cb',
    500: '#5e35b4',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b4;
$custom-light: #9370cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b4",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 180
  },
  "hsl": {
    "h": 259.37,
    "s": 54.506,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.18833,
    "h": 292
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#5E35B4
secondary
#AFC67F
accent
#DE4AAE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E35B4

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

Preview Lab → · Contrast checker → · Palette generator →

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