#5E35B3#5E35B3

#5E35B3 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.187 H 292.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5E35B3
RGBrgb(94, 53, 179)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 70%)
CMYKcmyk(47.5%, 70.4%, 0%, 29.8%)
CIE-LABlab(34.36, 47.16, -60.46)
CIE-LCHlch(34.36, 76.68, 307.95°)
OKLaboklab(45.49% 0.0707 -0.1733)
OKLCHoklch(45.49% 0.187 292.2)
XYZxyz(14.0236, 8.1801, 43.4791)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B3 #8AB335
analogous
#354BB3 #5E35B3 #9D35B3
triadic
#5E35B3 #B35E35 #35B35E
tetradic
#5E35B3 #B3354B #8AB335 #35B39D
square
#5E35B3 #B3354B #8AB335 #35B39D
split-complementary
#5E35B3 #B39D35 #4BB335
monochromatic
#2C1955 #452784 #5E35B3 #7E58CD #A287DB

Accessibility & contrast

On white

7.97
#5E35B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5E35B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35B3
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B3#FFFFFF#000000##FFFFFF
##5E35B31.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#445570
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e35b3;
/* rgb */ color: rgb(94, 53, 179);
/* oklch */ color: oklch(45.5% 0.187 292.2);
Tailwind
colors: {
  custom: {
    50: '#9370cb',
    500: '#5e35b3',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b3;
$custom-light: #9370cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b3",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 259.524,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45487,
    "c": 0.18715,
    "h": 292.2
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#5E35B3
secondary
#AEC57F
accent
#DE4AAE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E35B3

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

Preview Lab → · Contrast checker → · Palette generator →

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