#5A35BA#5A35BA

#5A35BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.195 H 289.0°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5A35BA
RGBrgb(90, 53, 186)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.6%, 71.5%, 0%, 27.1%)
CIE-LABlab(34.53, 48.45, -64.34)
CIE-LCHlch(34.53, 80.54, 306.98°)
OKLaboklab(45.69% 0.0636 -0.1848)
OKLCHoklch(45.69% 0.195 289)
XYZxyz(14.3499, 8.2644, 47.2839)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35BA #95BA35
analogous
#3552BA #5A35BA #9D35BA
triadic
#5A35BA #BA5A35 #35BA5A
tetradic
#5A35BA #BA3552 #95BA35 #35BA9D
square
#5A35BA #BA3552 #95BA35 #35BA9D
split-complementary
#5A35BA #BA9D35 #52BA35
monochromatic
#2C1A5B #43278A #5A35BA #7C5CD0 #A28BDE

Accessibility & contrast

On white

7.92
#5A35BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A35BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35BA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35BA#FFFFFF#000000##FFFFFF
##5A35BA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#375874
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a35ba;
/* rgb */ color: rgb(90, 53, 186);
/* oklch */ color: oklch(45.7% 0.195 289.0);
Tailwind
colors: {
  custom: {
    50: '#9270d0',
    500: '#5a35ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a35ba;
$custom-light: #9270d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35ba",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 186
  },
  "hsl": {
    "h": 256.692,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45694,
    "c": 0.19542,
    "h": 289
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#5A35BA
secondary
#B5C882
accent
#DF49B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A35BA

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

Preview Lab → · Contrast checker → · Palette generator →

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