#5E35B5#5E35B5

#5E35B5 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.190 H 291.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5E35B5
RGBrgb(94, 53, 181)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(48.1%, 70.7%, 0%, 29%)
CIE-LABlab(34.52, 47.71, -61.37)
CIE-LCHlch(34.52, 77.74, 307.86°)
OKLaboklab(45.66% 0.0704 -0.176)
OKLCHoklch(45.66% 0.19 291.8)
XYZxyz(14.2273, 8.2616, 44.5521)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B5 #8CB535
analogous
#354CB5 #5E35B5 #9E35B5
triadic
#5E35B5 #B55E35 #35B55E
tetradic
#5E35B5 #B5354C #8CB535 #35B59E
square
#5E35B5 #B5354C #8CB535 #35B59E
split-complementary
#5E35B5 #B59E35 #4CB535
monochromatic
#2D1956 #452786 #5E35B5 #7E59CE #A388DC

Accessibility & contrast

On white

7.92
#5E35B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5E35B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35B5
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B5#FFFFFF#000000##FFFFFF
##5E35B51.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#425671
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e35b5;
/* rgb */ color: rgb(94, 53, 181);
/* oklch */ color: oklch(45.7% 0.190 291.8);
Tailwind
colors: {
  custom: {
    50: '#9470cc',
    500: '#5e35b5',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b5;
$custom-light: #9470cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b5",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 259.219,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45657,
    "c": 0.18951,
    "h": 291.8
  },
  "luminance": 0.08262
}

Semantic roles & 50–950 ramp

primary
#5E35B5
secondary
#B0C680
accent
#DE4AAF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E35B5

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

Preview Lab → · Contrast checker → · Palette generator →

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