#5D35D7#5D35D7

#5D35D7 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.228 H 285.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5D35D7
RGBrgb(93, 53, 215)
HSLhsl(255, 67%, 53%)
HSVhsv(255, 75%, 84%)
CMYKcmyk(56.7%, 75.3%, 0%, 15.7%)
CIE-LABlab(37.44, 57.04, -76.44)
CIE-LCHlch(37.44, 95.38, 306.73°)
OKLaboklab(48.62% 0.0611 -0.2202)
OKLCHoklch(48.62% 0.228 285.5)
XYZxyz(18.0493, 9.7786, 65.2132)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35D7 #AFD735
analogous
#355ED7 #5D35D7 #AE35D7
triadic
#5D35D7 #D75D35 #35D75D
tetradic
#5D35D7 #D7355E #AFD735 #35D7AE
square
#5D35D7 #D7355E #AFD735 #35D7AE
split-complementary
#5D35D7 #D7AE35 #5ED735
monochromatic
#30187A #4422AD #5D35D7 #8668E1 #AF9BEB

Accessibility & contrast

On white

7.10
#5D35D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5D35D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35D7
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35D7#FFFFFF#000000##FFFFFF
##5D35D71.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#1E6384
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d35d7;
/* rgb */ color: rgb(93, 53, 215);
/* oklch */ color: oklch(48.6% 0.228 285.5);
Tailwind
colors: {
  custom: {
    50: '#9871e5',
    500: '#5d35d7',
    950: '#000000',
  },
}
SCSS
$custom: #5d35d7;
$custom-light: #9871e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35d7",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 215
  },
  "hsl": {
    "h": 254.815,
    "s": 66.942,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48619,
    "c": 0.22847,
    "h": 285.5
  },
  "luminance": 0.0978
}

Semantic roles & 50–950 ramp

primary
#5D35D7
secondary
#C6D791
accent
#EA3EBF
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D35D7

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

Preview Lab → · Contrast checker → · Palette generator →

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