#5A35BB#5A35BB

#5A35BB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.197 H 288.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5A35BB
RGBrgb(90, 53, 187)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.9%, 71.7%, 0%, 26.7%)
CIE-LABlab(34.61, 48.73, -64.79)
CIE-LCHlch(34.61, 81.07, 306.95°)
OKLaboklab(45.78% 0.0634 -0.1861)
OKLCHoklch(45.78% 0.197 288.8)
XYZxyz(14.4566, 8.3071, 47.8458)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35BB #96BB35
analogous
#3553BB #5A35BB #9D35BB
triadic
#5A35BB #BB5A35 #35BB5A
tetradic
#5A35BB #BB3553 #96BB35 #35BB9D
square
#5A35BB #BB3553 #96BB35 #35BB9D
split-complementary
#5A35BB #BB9D35 #53BB35
monochromatic
#2C1A5C #43278B #5A35BB #7D5CD1 #A38CDE

Accessibility & contrast

On white

7.89
#5A35BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5A35BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35BB
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35BB#FFFFFF#000000##FFFFFF
##5A35BB1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#365874
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a35bb;
/* rgb */ color: rgb(90, 53, 187);
/* oklch */ color: oklch(45.8% 0.197 288.8);
Tailwind
colors: {
  custom: {
    50: '#9270d1',
    500: '#5a35bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a35bb;
$custom-light: #9270d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35bb",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 187
  },
  "hsl": {
    "h": 256.567,
    "s": 55.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45783,
    "c": 0.1966,
    "h": 288.8
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#5A35BB
secondary
#B5C983
accent
#DF49B6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A35BB

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

Preview Lab → · Contrast checker → · Palette generator →

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