#5E35CC#5E35CC

#5E35CC is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.216 H 287.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5E35CC
RGBrgb(94, 53, 204)
HSLhsl(256, 60%, 50%)
HSVhsv(256, 74%, 80%)
CMYKcmyk(53.9%, 74%, 0%, 20%)
CIE-LABlab(36.53, 54.11, -71.58)
CIE-LCHlch(36.53, 89.74, 307.09°)
OKLaboklab(47.69% 0.0653 -0.2059)
OKLCHoklch(47.69% 0.216 287.6)
XYZxyz(16.7851, 9.2847, 58.0227)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35CC #A3CC35
analogous
#3558CC #5E35CC #A935CC
triadic
#5E35CC #CC5E35 #35CC5E
tetradic
#5E35CC #CC3558 #A3CC35 #35CCA9
square
#5E35CC #CC3558 #A3CC35 #35CCA9
split-complementary
#5E35CC #CCA935 #58CC35
monochromatic
#311B6B #47279C #5E35CC #8566D8 #AC97E5

Accessibility & contrast

On white

7.35
#5E35CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5E35CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35CC
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35CC#FFFFFF#000000##FFFFFF
##5E35CC1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#305F7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e35cc;
/* rgb */ color: rgb(94, 53, 204);
/* oklch */ color: oklch(47.7% 0.216 287.6);
Tailwind
colors: {
  custom: {
    50: '#9771dd',
    500: '#5e35cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e35cc;
$custom-light: #9771dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35cc",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 256.291,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47692,
    "c": 0.216,
    "h": 287.6
  },
  "luminance": 0.09286
}

Semantic roles & 50–950 ramp

primary
#5E35CC
secondary
#BED08D
accent
#E345B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E35CC

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

Preview Lab → · Contrast checker → · Palette generator →

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