#5E35B8#5E35B8

#5E35B8 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.193 H 291.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5E35B8
RGBrgb(94, 53, 184)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 72%)
CMYKcmyk(48.9%, 71.2%, 0%, 27.8%)
CIE-LABlab(34.77, 48.55, -62.74)
CIE-LCHlch(34.77, 79.33, 307.73°)
OKLaboklab(45.92% 0.0698 -0.18)
OKLCHoklch(45.92% 0.193 291.2)
XYZxyz(14.5385, 8.3860, 46.1907)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E35B8 #8FB835
analogous
#354EB8 #5E35B8 #A035B8
triadic
#5E35B8 #B85E35 #35B85E
tetradic
#5E35B8 #B8354E #8FB835 #35B8A0
square
#5E35B8 #B8354E #8FB835 #35B8A0
split-complementary
#5E35B8 #B8A035 #4EB835
monochromatic
#2D1A59 #462788 #5E35B8 #7F5BD0 #A48ADD

Accessibility & contrast

On white

7.84
#5E35B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5E35B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E35B8
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E35B8#FFFFFF#000000##FFFFFF
##5E35B81.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#415773
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e35b8;
/* rgb */ color: rgb(94, 53, 184);
/* oklch */ color: oklch(45.9% 0.193 291.2);
Tailwind
colors: {
  custom: {
    50: '#9470ce',
    500: '#5e35b8',
    950: '#000000',
  },
}
SCSS
$custom: #5e35b8;
$custom-light: #9470ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e35b8",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 258.779,
    "s": 55.274,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.19301,
    "h": 291.2
  },
  "luminance": 0.08387
}

Semantic roles & 50–950 ramp

primary
#5E35B8
secondary
#B2C781
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E35B8

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

Preview Lab → · Contrast checker → · Palette generator →

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