#5A35AE#5A35AE

#5A35AE is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.181 H 291.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5A35AE
RGBrgb(90, 53, 174)
HSLhsl(258, 53%, 45%)
HSVhsv(258, 70%, 68%)
CMYKcmyk(48.3%, 69.5%, 0%, 31.8%)
CIE-LABlab(33.51, 45.05, -58.88)
CIE-LCHlch(33.51, 74.13, 307.42°)
OKLaboklab(44.66% 0.0659 -0.1688)
OKLCHoklch(44.66% 0.181 291.3)
XYZxyz(13.1274, 7.7754, 40.8453)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35AE #89AE35
analogous
#354DAE #5A35AE #9735AE
triadic
#5A35AE #AE5A35 #35AE5A
tetradic
#5A35AE #AE354D #89AE35 #35AE97
square
#5A35AE #AE354D #89AE35 #35AE97
split-complementary
#5A35AE #AE9735 #4DAE35
monochromatic
#291850 #42277F #5A35AE #7955CB #9E84DA

Accessibility & contrast

On white

8.22
#5A35AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A35AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35AE
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35AE#FFFFFF#000000##FFFFFF
##5A35AE1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#3F546D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a35ae;
/* rgb */ color: rgb(90, 53, 174);
/* oklch */ color: oklch(44.7% 0.181 291.3);
Tailwind
colors: {
  custom: {
    50: '#906fc7',
    500: '#5a35ae',
    950: '#000000',
  },
}
SCSS
$custom: #5a35ae;
$custom-light: #906fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35ae",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 174
  },
  "hsl": {
    "h": 258.347,
    "s": 53.304,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44656,
    "c": 0.18116,
    "h": 291.3
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#5A35AE
secondary
#ADC37C
accent
#DD4BB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A35AE

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

Preview Lab → · Contrast checker → · Palette generator →

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