#5C35B2#5C35B2

#5C35B2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.186 H 291.5°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5C35B2
RGBrgb(92, 53, 178)
HSLhsl(259, 54%, 45%)
HSVhsv(259, 70%, 70%)
CMYKcmyk(48.3%, 70.2%, 0%, 30.2%)
CIE-LABlab(34.06, 46.53, -60.36)
CIE-LCHlch(34.06, 76.21, 307.63°)
OKLaboklab(45.2% 0.068 -0.1731)
OKLCHoklch(45.2% 0.186 291.5)
XYZxyz(13.7204, 8.0354, 42.9389)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C35B2 #8BB235
analogous
#354CB2 #5C35B2 #9A35B2
triadic
#5C35B2 #B25C35 #35B25C
tetradic
#5C35B2 #B2354C #8BB235 #35B29A
square
#5C35B2 #B2354C #8BB235 #35B29A
split-complementary
#5C35B2 #B29A35 #4CB235
monochromatic
#2B1954 #442783 #5C35B2 #7C57CD #A186DB

Accessibility & contrast

On white

8.05
#5C35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5C35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C35B2
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C35B2#FFFFFF#000000##FFFFFF
##5C35B21.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#40556F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c35b2;
/* rgb */ color: rgb(92, 53, 178);
/* oklch */ color: oklch(45.2% 0.186 291.5);
Tailwind
colors: {
  custom: {
    50: '#926fca',
    500: '#5c35b2',
    950: '#000000',
  },
}
SCSS
$custom: #5c35b2;
$custom-light: #926fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c35b2",
  "rgb": {
    "r": 92,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 258.72,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45198,
    "c": 0.18595,
    "h": 291.5
  },
  "luminance": 0.08036
}

Semantic roles & 50–950 ramp

primary
#5C35B2
secondary
#AFC57E
accent
#DD4AB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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