#5E35B2#5E35B2

#5E35B2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.186 H 292.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5E35B2
RGBrgb(94, 53, 178)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 70%)
CMYKcmyk(47.2%, 70.2%, 0%, 30.2%)
CIE-LABlab(34.27, 46.88, -60.00)
CIE-LCHlch(34.27, 76.14, 308.00°)
OKLaboklab(45.4% 0.0709 -0.1719)
OKLCHoklch(45.4% 0.186 292.4)
XYZxyz(13.9228, 8.1398, 42.9484)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B2 #89B235
analogous
#354AB2 #5E35B2 #9C35B2
triadic
#5E35B2 #B25E35 #35B25E
tetradic
#5E35B2 #B2354A #89B235 #35B29C
square
#5E35B2 #B2354A #89B235 #35B29C
split-complementary
#5E35B2 #B29C35 #4AB235
monochromatic
#2C1954 #452783 #5E35B2 #7E57CD #A286DB

Accessibility & contrast

On white

7.99
#5E35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5E35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35B2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B2#FFFFFF#000000##FFFFFF
##5E35B21.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#44556F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e35b2;
/* rgb */ color: rgb(94, 53, 178);
/* oklch */ color: oklch(45.4% 0.186 292.4);
Tailwind
colors: {
  custom: {
    50: '#9370ca',
    500: '#5e35b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b2;
$custom-light: #9370ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b2",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 259.68,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45402,
    "c": 0.18599,
    "h": 292.4
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#5E35B2
secondary
#AEC57E
accent
#DD4AAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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