#5C35BB#5C35BB

#5C35BB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.197 H 289.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5C35BB
RGBrgb(92, 53, 187)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(50.8%, 71.7%, 0%, 26.7%)
CIE-LABlab(34.82, 49.05, -64.44)
CIE-LCHlch(34.82, 80.99, 307.28°)
OKLaboklab(45.98% 0.0663 -0.185)
OKLCHoklch(45.98% 0.197 289.7)
XYZxyz(14.6538, 8.4087, 47.8550)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C35BB #94BB35
analogous
#3551BB #5C35BB #9F35BB
triadic
#5C35BB #BB5C35 #35BB5C
tetradic
#5C35BB #BB3551 #94BB35 #35BB9F
square
#5C35BB #BB3551 #94BB35 #35BB9F
split-complementary
#5C35BB #BB9F35 #51BB35
monochromatic
#2D1A5C #45278B #5C35BB #7E5CD1 #A48CDE

Accessibility & contrast

On white

7.83
#5C35BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5C35BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C35BB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C35BB#FFFFFF#000000##FFFFFF
##5C35BB1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c35bb;
/* rgb */ color: rgb(92, 53, 187);
/* oklch */ color: oklch(46.0% 0.197 289.7);
Tailwind
colors: {
  custom: {
    50: '#9370d1',
    500: '#5c35bb',
    950: '#000000',
  },
}
SCSS
$custom: #5c35bb;
$custom-light: #9370d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c35bb",
  "rgb": {
    "r": 92,
    "g": 53,
    "b": 187
  },
  "hsl": {
    "h": 257.463,
    "s": 55.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45977,
    "c": 0.19653,
    "h": 289.7
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C35BB

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

Preview Lab → · Contrast checker → · Palette generator →

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