#5A35BD#5A35BD

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

Color values

HEX#5A35BD
RGBrgb(90, 53, 189)
HSLhsl(256, 56%, 47%)
HSVhsv(256, 72%, 74%)
CMYKcmyk(52.4%, 72%, 0%, 25.9%)
CIE-LABlab(34.79, 49.30, -65.68)
CIE-LCHlch(34.79, 82.12, 306.89°)
OKLaboklab(45.96% 0.0629 -0.1887)
OKLCHoklch(45.96% 0.199 288.4)
XYZxyz(14.6722, 8.3933, 48.9812)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35BD #98BD35
analogous
#3554BD #5A35BD #9E35BD
triadic
#5A35BD #BD5A35 #35BD5A
tetradic
#5A35BD #BD3554 #98BD35 #35BD9E
square
#5A35BD #BD3554 #98BD35 #35BD9E
split-complementary
#5A35BD #BD9E35 #54BD35
monochromatic
#2C1A5D #43288D #5A35BD #7D5DD2 #A48DDF

Accessibility & contrast

On white

7.84
#5A35BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A35BD
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35BD#FFFFFF#000000##FFFFFF
##5A35BD1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#345976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a35bd;
/* rgb */ color: rgb(90, 53, 189);
/* oklch */ color: oklch(46.0% 0.199 288.4);
Tailwind
colors: {
  custom: {
    50: '#9270d2',
    500: '#5a35bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a35bd;
$custom-light: #9270d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35bd",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 189
  },
  "hsl": {
    "h": 256.324,
    "s": 56.198,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4596,
    "c": 0.19895,
    "h": 288.4
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#5A35BD
secondary
#B7CA84
accent
#DF48B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A35BD

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

Preview Lab → · Contrast checker → · Palette generator →

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