#5A35BC#5A35BC

#5A35BC is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.198 H 288.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5A35BC
RGBrgb(90, 53, 188)
HSLhsl(256, 56%, 47%)
HSVhsv(256, 72%, 74%)
CMYKcmyk(52.1%, 71.8%, 0%, 26.3%)
CIE-LABlab(34.70, 49.02, -65.23)
CIE-LCHlch(34.70, 81.60, 306.92°)
OKLaboklab(45.87% 0.0631 -0.1874)
OKLCHoklch(45.87% 0.198 288.6)
XYZxyz(14.5640, 8.3500, 48.4115)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35BC #97BC35
analogous
#3554BC #5A35BC #9D35BC
triadic
#5A35BC #BC5A35 #35BC5A
tetradic
#5A35BC #BC3554 #97BC35 #35BC9D
square
#5A35BC #BC3554 #97BC35 #35BC9D
split-complementary
#5A35BC #BC9D35 #54BC35
monochromatic
#2C1A5D #43288C #5A35BC #7D5DD1 #A38DDF

Accessibility & contrast

On white

7.86
#5A35BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5A35BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35BC
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35BC#FFFFFF#000000##FFFFFF
##5A35BC1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#355975
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a35bc;
/* rgb */ color: rgb(90, 53, 188);
/* oklch */ color: oklch(45.9% 0.198 288.6);
Tailwind
colors: {
  custom: {
    50: '#9270d1',
    500: '#5a35bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a35bc;
$custom-light: #9270d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35bc",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 188
  },
  "hsl": {
    "h": 256.444,
    "s": 56.017,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45871,
    "c": 0.19777,
    "h": 288.6
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A35BC

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

Preview Lab → · Contrast checker → · Palette generator →

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