#5A3EAF#5A3EAF

#5A3EAF is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.1% C 0.171 H 289.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5A3EAF
RGBrgb(90, 62, 175)
HSLhsl(255, 48%, 46%)
HSVhsv(255, 65%, 69%)
CMYKcmyk(48.6%, 64.6%, 0%, 31.4%)
CIE-LABlab(35.43, 40.33, -56.35)
CIE-LCHlch(35.43, 69.30, 305.59°)
OKLaboklab(46.06% 0.0566 -0.1614)
OKLCHoklch(46.06% 0.171 289.3)
XYZxyz(13.6747, 8.7135, 41.5105)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EAF #93AF3E
analogous
#3E5BAF #5A3EAF #933EAF
triadic
#5A3EAF #AF5A3E #3EAF5A
tetradic
#5A3EAF #AF3E5B #93AF3E #3EAF93
square
#5A3EAF #AF3E5B #93AF3E #3EAF93
split-complementary
#5A3EAF #AF933E #5BAF3E
monochromatic
#2C1E55 #432E82 #5A3EAF #7C63C8 #A290D8

Accessibility & contrast

On white

7.66
#5A3EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A3EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EAF
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EAF#FFFFFF#000000##FFFFFF
##5A3EAF1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#3E5971
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3eaf;
/* rgb */ color: rgb(90, 62, 175);
/* oklch */ color: oklch(46.1% 0.171 289.3);
Tailwind
colors: {
  custom: {
    50: '#9075c8',
    500: '#5a3eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3eaf;
$custom-light: #9075c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3eaf",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 254.867,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.171,
    "h": 289.3
  },
  "luminance": 0.08714
}

Semantic roles & 50–950 ramp

primary
#5A3EAF
secondary
#B4C386
accent
#D751B6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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