#5A35AB#5A35AB

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

Color values

HEX#5A35AB
RGBrgb(90, 53, 171)
HSLhsl(259, 53%, 44%)
HSVhsv(259, 69%, 67%)
CMYKcmyk(47.4%, 69%, 0%, 32.9%)
CIE-LABlab(33.26, 44.20, -57.49)
CIE-LCHlch(33.26, 72.51, 307.55°)
OKLaboklab(44.4% 0.0664 -0.1647)
OKLCHoklch(44.4% 0.178 291.9)
XYZxyz(12.8382, 7.6597, 39.3222)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35AB #86AB35
analogous
#354BAB #5A35AB #9535AB
triadic
#5A35AB #AB5A35 #35AB5A
tetradic
#5A35AB #AB354B #86AB35 #35AB95
square
#5A35AB #AB354B #86AB35 #35AB95
split-complementary
#5A35AB #AB9535 #4BAB35
monochromatic
#29184E #41277C #5A35AB #7953CA #9D82D8

Accessibility & contrast

On white

8.29
#5A35AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5A35AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35AB
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35AB#FFFFFF#000000##FFFFFF
##5A35AB1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a35ab;
/* rgb */ color: rgb(90, 53, 171);
/* oklch */ color: oklch(44.4% 0.178 291.9);
Tailwind
colors: {
  custom: {
    50: '#906fc5',
    500: '#5a35ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a35ab;
$custom-light: #906fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35ab",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 258.814,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44402,
    "c": 0.17756,
    "h": 291.9
  },
  "luminance": 0.0766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A35AB

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

Preview Lab → · Contrast checker → · Palette generator →

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