#5E35B0#5E35B0

#5E35B0 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.184 H 292.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5E35B0
RGBrgb(94, 53, 176)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 69%)
CMYKcmyk(46.6%, 69.9%, 0%, 31%)
CIE-LABlab(34.11, 46.33, -59.08)
CIE-LCHlch(34.11, 75.08, 308.10°)
OKLaboklab(45.23% 0.0713 -0.1692)
OKLCHoklch(45.23% 0.184 292.8)
XYZxyz(13.7235, 8.0600, 41.8985)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B0 #87B035
analogous
#3549B0 #5E35B0 #9C35B0
triadic
#5E35B0 #B05E35 #35B05E
tetradic
#5E35B0 #B03549 #87B035 #35B09C
square
#5E35B0 #B03549 #87B035 #35B09C
split-complementary
#5E35B0 #B09C35 #49B035
monochromatic
#2C1952 #452781 #5E35B0 #7D56CC #A285DA

Accessibility & contrast

On white

8.04
#5E35B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5E35B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35B0
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B0#FFFFFF#000000##FFFFFF
##5E35B01.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#45546E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e35b0;
/* rgb */ color: rgb(94, 53, 176);
/* oklch */ color: oklch(45.2% 0.184 292.8);
Tailwind
colors: {
  custom: {
    50: '#936fc9',
    500: '#5e35b0',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b0;
$custom-light: #936fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b0",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 176
  },
  "hsl": {
    "h": 260,
    "s": 53.712,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45234,
    "c": 0.18362,
    "h": 292.8
  },
  "luminance": 0.0806
}

Semantic roles & 50–950 ramp

primary
#5E35B0
secondary
#ACC47D
accent
#DD4BAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E35B0

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

Preview Lab → · Contrast checker → · Palette generator →

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