#5A35AC#5A35AC

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

Color values

HEX#5A35AC
RGBrgb(90, 53, 172)
HSLhsl(259, 53%, 44%)
HSVhsv(259, 69%, 67%)
CMYKcmyk(47.7%, 69.2%, 0%, 32.5%)
CIE-LABlab(33.35, 44.48, -57.95)
CIE-LCHlch(33.35, 73.05, 307.51°)
OKLaboklab(44.49% 0.0662 -0.166)
OKLCHoklch(44.49% 0.179 291.7)
XYZxyz(12.9339, 7.6980, 39.8261)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35AC #87AC35
analogous
#354CAC #5A35AC #9635AC
triadic
#5A35AC #AC5A35 #35AC5A
tetradic
#5A35AC #AC354C #87AC35 #35AC96
square
#5A35AC #AC354C #87AC35 #35AC96
split-complementary
#5A35AC #AC9635 #4CAC35
monochromatic
#29184E #42277D #5A35AC #7954CA #9D83D9

Accessibility & contrast

On white

8.27
#5A35AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A35AC
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35AC#FFFFFF#000000##FFFFFF
##5A35AC1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#40536C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a35ac;
/* rgb */ color: rgb(90, 53, 172);
/* oklch */ color: oklch(44.5% 0.179 291.7);
Tailwind
colors: {
  custom: {
    50: '#906fc6',
    500: '#5a35ac',
    950: '#000000',
  },
}
SCSS
$custom: #5a35ac;
$custom-light: #906fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35ac",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 172
  },
  "hsl": {
    "h": 258.655,
    "s": 52.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44487,
    "c": 0.17876,
    "h": 291.7
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A35AC

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

Preview Lab → · Contrast checker → · Palette generator →

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