#5B35D7#5B35D7

#5B35D7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.229 H 284.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5B35D7
RGBrgb(91, 53, 215)
HSLhsl(254, 67%, 53%)
HSVhsv(254, 75%, 84%)
CMYKcmyk(57.7%, 75.3%, 0%, 15.7%)
CIE-LABlab(37.25, 56.79, -76.76)
CIE-LCHlch(37.25, 95.48, 306.49°)
OKLaboklab(48.44% 0.0582 -0.2211)
OKLCHoklch(48.44% 0.229 284.7)
XYZxyz(17.8495, 9.6755, 65.2038)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35D7 #B1D735
analogous
#3560D7 #5B35D7 #AC35D7
triadic
#5B35D7 #D75B35 #35D75B
tetradic
#5B35D7 #D73560 #B1D735 #35D7AC
square
#5B35D7 #D73560 #B1D735 #35D7AC
split-complementary
#5B35D7 #D7AC35 #60D735
monochromatic
#2F187A #4322AD #5B35D7 #8468E1 #AE9BEB

Accessibility & contrast

On white

7.15
#5B35D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5B35D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35D7
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35D7#FFFFFF#000000##FFFFFF
##5B35D71.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b35d7;
/* rgb */ color: rgb(91, 53, 215);
/* oklch */ color: oklch(48.4% 0.229 284.7);
Tailwind
colors: {
  custom: {
    50: '#9771e5',
    500: '#5b35d7',
    950: '#000000',
  },
}
SCSS
$custom: #5b35d7;
$custom-light: #9771e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35d7",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 215
  },
  "hsl": {
    "h": 254.074,
    "s": 66.942,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48442,
    "c": 0.22867,
    "h": 284.7
  },
  "luminance": 0.09677
}

Semantic roles & 50–950 ramp

primary
#5B35D7
secondary
#C7D791
accent
#EA3EC2
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B35D7

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

Preview Lab → · Contrast checker → · Palette generator →

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