#5E35C4#5E35C4

#5E35C4 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.207 H 288.9°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5E35C4
RGBrgb(94, 53, 196)
HSLhsl(257, 57%, 49%)
HSVhsv(257, 73%, 77%)
CMYKcmyk(52%, 73%, 0%, 23.1%)
CIE-LABlab(35.81, 51.89, -68.09)
CIE-LCHlch(35.81, 85.61, 307.31°)
OKLaboklab(46.97% 0.0672 -0.1957)
OKLCHoklch(46.97% 0.207 288.9)
XYZxyz(15.8501, 8.9107, 53.0986)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35C4 #9BC435
analogous
#3554C4 #5E35C4 #A635C4
triadic
#5E35C4 #C45E35 #35C45E
tetradic
#5E35C4 #C43554 #9BC435 #35C4A6
square
#5E35C4 #C43554 #9BC435 #35C4A6
split-complementary
#5E35C4 #C4A635 #54C435
monochromatic
#301B64 #472894 #5E35C4 #8362D4 #A992E1

Accessibility & contrast

On white

7.55
#5E35C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5E35C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35C4
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35C4#FFFFFF#000000##FFFFFF
##5E35C41.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#385C79
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e35c4;
/* rgb */ color: rgb(94, 53, 196);
/* oklch */ color: oklch(47.0% 0.207 288.9);
Tailwind
colors: {
  custom: {
    50: '#9670d7',
    500: '#5e35c4',
    950: '#000000',
  },
}
SCSS
$custom: #5e35c4;
$custom-light: #9670d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35c4",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 196
  },
  "hsl": {
    "h": 257.203,
    "s": 57.43,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46969,
    "c": 0.20689,
    "h": 288.9
  },
  "luminance": 0.08911
}

Semantic roles & 50–950 ramp

primary
#5E35C4
secondary
#B9CC88
accent
#E147B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5E35C4

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

Preview Lab → · Contrast checker → · Palette generator →

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