#5D35BB#5D35BB

#5D35BB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.197 H 290.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5D35BB
RGBrgb(93, 53, 187)
HSLhsl(258, 56%, 47%)
HSVhsv(258, 72%, 73%)
CMYKcmyk(50.3%, 71.7%, 0%, 26.7%)
CIE-LABlab(34.92, 49.22, -64.27)
CIE-LCHlch(34.92, 80.95, 307.45°)
OKLaboklab(46.08% 0.0677 -0.1845)
OKLCHoklch(46.08% 0.197 290.2)
XYZxyz(14.7544, 8.4606, 47.8597)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35BB #93BB35
analogous
#3550BB #5D35BB #A035BB
triadic
#5D35BB #BB5D35 #35BB5D
tetradic
#5D35BB #BB3550 #93BB35 #35BBA0
square
#5D35BB #BB3550 #93BB35 #35BBA0
split-complementary
#5D35BB #BBA035 #50BB35
monochromatic
#2E1A5C #45278B #5D35BB #7F5CD1 #A58CDE

Accessibility & contrast

On white

7.80
#5D35BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5D35BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35BB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35BB#FFFFFF#000000##FFFFFF
##5D35BB1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#3C5874
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d35bb;
/* rgb */ color: rgb(93, 53, 187);
/* oklch */ color: oklch(46.1% 0.197 290.2);
Tailwind
colors: {
  custom: {
    50: '#9470d1',
    500: '#5d35bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d35bb;
$custom-light: #9470d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35bb",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 187
  },
  "hsl": {
    "h": 257.91,
    "s": 55.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46076,
    "c": 0.19651,
    "h": 290.2
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#5D35BB
secondary
#B4C983
accent
#DF49B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D35BB

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

Preview Lab → · Contrast checker → · Palette generator →

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