#5A35BE#5A35BE

#5A35BE is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.200 H 288.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5A35BE
RGBrgb(90, 53, 190)
HSLhsl(256, 56%, 48%)
HSVhsv(256, 72%, 75%)
CMYKcmyk(52.6%, 72.1%, 0%, 25.5%)
CIE-LABlab(34.88, 49.58, -66.12)
CIE-LCHlch(34.88, 82.65, 306.87°)
OKLaboklab(46.05% 0.0627 -0.19)
OKLCHoklch(46.05% 0.2 288.3)
XYZxyz(14.7811, 8.4369, 49.5548)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35BE #99BE35
analogous
#3555BE #5A35BE #9E35BE
triadic
#5A35BE #BE5A35 #35BE5A
tetradic
#5A35BE #BE3555 #99BE35 #35BE9E
square
#5A35BE #BE3555 #99BE35 #35BE9E
split-complementary
#5A35BE #BE9E35 #55BE35
monochromatic
#2D1A5E #43288E #5A35BE #7D5ED2 #A48EDF

Accessibility & contrast

On white

7.81
#5A35BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A35BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35BE
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35BE#FFFFFF#000000##FFFFFF
##5A35BE1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#335A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a35be;
/* rgb */ color: rgb(90, 53, 190);
/* oklch */ color: oklch(46.0% 0.200 288.3);
Tailwind
colors: {
  custom: {
    50: '#9270d3',
    500: '#5a35be',
    950: '#000000',
  },
}
SCSS
$custom: #5a35be;
$custom-light: #9270d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35be",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 190
  },
  "hsl": {
    "h": 256.204,
    "s": 56.379,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46049,
    "c": 0.20011,
    "h": 288.3
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A35BE

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

Preview Lab → · Contrast checker → · Palette generator →

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