#5C35D6#5C35D6

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

Color values

HEX#5C35D6
RGBrgb(92, 53, 214)
HSLhsl(255, 66%, 52%)
HSVhsv(255, 75%, 84%)
CMYKcmyk(57%, 75.2%, 0%, 16.1%)
CIE-LABlab(37.25, 56.63, -76.18)
CIE-LCHlch(37.25, 94.93, 306.63°)
OKLaboklab(48.44% 0.0599 -0.2194)
OKLCHoklch(48.44% 0.227 285.3)
XYZxyz(17.8207, 9.6755, 64.5338)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C35D6 #AFD635
analogous
#355FD6 #5C35D6 #AC35D6
triadic
#5C35D6 #D65C35 #35D65C
tetradic
#5C35D6 #D6355F #AFD635 #35D6AC
square
#5C35D6 #D6355F #AFD635 #35D6AC
split-complementary
#5C35D6 #D6AC35 #5FD635
monochromatic
#301878 #4423AB #5C35D6 #8568E0 #AE9BEB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C35D6#FFFFFF#000000##FFFFFF
##5C35D61.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)
#005CDB
Deuteranopia (green-blind)
#0053D3
Tritanopia (blue-blind)
#1C6384
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5c35d6;
/* rgb */ color: rgb(92, 53, 214);
/* oklch */ color: oklch(48.4% 0.227 285.3);
Tailwind
colors: {
  custom: {
    50: '#9771e4',
    500: '#5c35d6',
    950: '#000000',
  },
}
SCSS
$custom: #5c35d6;
$custom-light: #9771e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c35d6",
  "rgb": {
    "r": 92,
    "g": 53,
    "b": 214
  },
  "hsl": {
    "h": 254.534,
    "s": 66.255,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48436,
    "c": 0.22744,
    "h": 285.3
  },
  "luminance": 0.09677
}

Semantic roles & 50–950 ramp

primary
#5C35D6
secondary
#C5D690
accent
#E93FC0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5C35D6

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

Preview Lab → · Contrast checker → · Palette generator →

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