#5A35BF#5A35BF

#5A35BF is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.1% C 0.201 H 288.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5A35BF
RGBrgb(90, 53, 191)
HSLhsl(256, 57%, 48%)
HSVhsv(256, 72%, 75%)
CMYKcmyk(52.9%, 72.3%, 0%, 25.1%)
CIE-LABlab(34.96, 49.87, -66.57)
CIE-LCHlch(34.96, 83.17, 306.84°)
OKLaboklab(46.14% 0.0625 -0.1913)
OKLCHoklch(46.14% 0.201 288.1)
XYZxyz(14.8908, 8.4807, 50.1324)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35BF #9ABF35
analogous
#3555BF #5A35BF #9F35BF
triadic
#5A35BF #BF5A35 #35BF5A
tetradic
#5A35BF #BF3555 #9ABF35 #35BF9F
square
#5A35BF #BF3555 #9ABF35 #35BF9F
split-complementary
#5A35BF #BF9F35 #55BF35
monochromatic
#2D1A5F #43288F #5A35BF #7E5FD3 #A48FE0

Accessibility & contrast

On white

7.79
#5A35BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5A35BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35BF
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35BF#FFFFFF#000000##FFFFFF
##5A35BF1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#325A77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a35bf;
/* rgb */ color: rgb(90, 53, 191);
/* oklch */ color: oklch(46.1% 0.201 288.1);
Tailwind
colors: {
  custom: {
    50: '#9370d3',
    500: '#5a35bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a35bf;
$custom-light: #9370d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35bf",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 191
  },
  "hsl": {
    "h": 256.087,
    "s": 56.557,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46139,
    "c": 0.20128,
    "h": 288.1
  },
  "luminance": 0.08481
}

Semantic roles & 50–950 ramp

primary
#5A35BF
secondary
#B8CA85
accent
#E048B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A35BF

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

Preview Lab → · Contrast checker → · Palette generator →

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