#5D35B8#5D35B8

#5D35B8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.193 H 290.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5D35B8
RGBrgb(93, 53, 184)
HSLhsl(258, 55%, 46%)
HSVhsv(258, 71%, 72%)
CMYKcmyk(49.5%, 71.2%, 0%, 27.8%)
CIE-LABlab(34.67, 48.38, -62.91)
CIE-LCHlch(34.67, 79.36, 307.56°)
OKLaboklab(45.82% 0.0683 -0.1805)
OKLCHoklch(45.82% 0.193 290.7)
XYZxyz(14.4366, 8.3335, 46.1860)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35B8 #90B835
analogous
#354FB8 #5D35B8 #9F35B8
triadic
#5D35B8 #B85D35 #35B85D
tetradic
#5D35B8 #B8354F #90B835 #35B89F
square
#5D35B8 #B8354F #90B835 #35B89F
split-complementary
#5D35B8 #B89F35 #4FB835
monochromatic
#2D1A59 #452788 #5D35B8 #7E5BD0 #A38ADD

Accessibility & contrast

On white

7.87
#5D35B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5D35B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35B8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35B8#FFFFFF#000000##FFFFFF
##5D35B81.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d35b8;
/* rgb */ color: rgb(93, 53, 184);
/* oklch */ color: oklch(45.8% 0.193 290.7);
Tailwind
colors: {
  custom: {
    50: '#9370ce',
    500: '#5d35b8',
    950: '#000000',
  },
}
SCSS
$custom: #5d35b8;
$custom-light: #9370ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35b8",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 258.321,
    "s": 55.274,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45815,
    "c": 0.19302,
    "h": 290.7
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D35B8

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

Preview Lab → · Contrast checker → · Palette generator →

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