#5E35CA#5E35CA

#5E35CA is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.214 H 287.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5E35CA
RGBrgb(94, 53, 202)
HSLhsl(257, 58%, 50%)
HSVhsv(257, 74%, 79%)
CMYKcmyk(53.5%, 73.8%, 0%, 20.8%)
CIE-LABlab(36.35, 53.56, -70.72)
CIE-LCHlch(36.35, 88.71, 307.14°)
OKLaboklab(47.51% 0.0658 -0.2034)
OKLCHoklch(47.51% 0.214 287.9)
XYZxyz(16.5467, 9.1893, 56.7675)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35CA #A1CA35
analogous
#3557CA #5E35CA #A835CA
triadic
#5E35CA #CA5E35 #35CA5E
tetradic
#5E35CA #CA3557 #A1CA35 #35CAA8
square
#5E35CA #CA3557 #A1CA35 #35CAA8
split-complementary
#5E35CA #CAA835 #57CA35
monochromatic
#311C69 #47289A #5E35CA #8565D7 #AB96E3

Accessibility & contrast

On white

7.40
#5E35CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5E35CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35CA
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35CA#FFFFFF#000000##FFFFFF
##5E35CA1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#325E7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5e35ca;
/* rgb */ color: rgb(94, 53, 202);
/* oklch */ color: oklch(47.5% 0.214 287.9);
Tailwind
colors: {
  custom: {
    50: '#9671db',
    500: '#5e35ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e35ca;
$custom-light: #9671db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35ca",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 256.51,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.4751,
    "c": 0.21373,
    "h": 287.9
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

primary
#5E35CA
secondary
#BCCF8C
accent
#E246B7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E35CA

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

Preview Lab → · Contrast checker → · Palette generator →

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