#5A35AF#5A35AF

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

Color values

HEX#5A35AF
RGBrgb(90, 53, 175)
HSLhsl(258, 54%, 45%)
HSVhsv(258, 70%, 69%)
CMYKcmyk(48.6%, 69.7%, 0%, 31.4%)
CIE-LABlab(33.59, 45.33, -59.34)
CIE-LCHlch(33.59, 74.67, 307.38°)
OKLaboklab(44.74% 0.0657 -0.1701)
OKLCHoklch(44.74% 0.182 291.1)
XYZxyz(13.2252, 7.8145, 41.3606)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35AF #8AAF35
analogous
#354DAF #5A35AF #9735AF
triadic
#5A35AF #AF5A35 #35AF5A
tetradic
#5A35AF #AF354D #8AAF35 #35AF97
square
#5A35AF #AF354D #8AAF35 #35AF97
split-complementary
#5A35AF #AF9735 #4DAF35
monochromatic
#2A1951 #422780 #5A35AF #7956CC #9E85DA

Accessibility & contrast

On white

8.19
#5A35AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A35AF
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35AF#FFFFFF#000000##FFFFFF
##5A35AF1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#3F546E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a35af;
/* rgb */ color: rgb(90, 53, 175);
/* oklch */ color: oklch(44.7% 0.182 291.1);
Tailwind
colors: {
  custom: {
    50: '#906fc8',
    500: '#5a35af',
    950: '#000000',
  },
}
SCSS
$custom: #5a35af;
$custom-light: #906fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35af",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 258.197,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44741,
    "c": 0.18237,
    "h": 291.1
  },
  "luminance": 0.07815
}

Semantic roles & 50–950 ramp

primary
#5A35AF
secondary
#AEC47C
accent
#DD4BB1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A35AF

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

Preview Lab → · Contrast checker → · Palette generator →

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