#5B35AB#5B35AB

#5B35AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.178 H 292.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5B35AB
RGBrgb(91, 53, 171)
HSLhsl(259, 53%, 44%)
HSVhsv(259, 69%, 67%)
CMYKcmyk(46.8%, 69%, 0%, 32.9%)
CIE-LABlab(33.37, 44.38, -57.31)
CIE-LCHlch(33.37, 72.48, 307.76°)
OKLaboklab(44.51% 0.0678 -0.1641)
OKLCHoklch(44.51% 0.178 292.4)
XYZxyz(12.9361, 7.7102, 39.3268)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35AB #85AB35
analogous
#354AAB #5B35AB #9635AB
triadic
#5B35AB #AB5B35 #35AB5B
tetradic
#5B35AB #AB354A #85AB35 #35AB96
square
#5B35AB #AB354A #85AB35 #35AB96
split-complementary
#5B35AB #AB9635 #4AAB35
monochromatic
#29184E #42277C #5B35AB #7A53CA #9E82D8

Accessibility & contrast

On white

8.26
#5B35AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5B35AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35AB
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35AB#FFFFFF#000000##FFFFFF
##5B35AB1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#43526C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b35ab;
/* rgb */ color: rgb(91, 53, 171);
/* oklch */ color: oklch(44.5% 0.178 292.4);
Tailwind
colors: {
  custom: {
    50: '#906fc5',
    500: '#5b35ab',
    950: '#000000',
  },
}
SCSS
$custom: #5b35ab;
$custom-light: #906fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35ab",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 259.322,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44505,
    "c": 0.17758,
    "h": 292.4
  },
  "luminance": 0.07711
}

Semantic roles & 50–950 ramp

primary
#5B35AB
secondary
#ABC27A
accent
#DC4CAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B35AB

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

Preview Lab → · Contrast checker → · Palette generator →

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