#5A46BA#5A46BA

#5A46BA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.2% C 0.175 H 285.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5A46BA
RGBrgb(90, 70, 186)
HSLhsl(250, 46%, 50%)
HSVhsv(250, 62%, 73%)
CMYKcmyk(51.6%, 62.4%, 0%, 27.1%)
CIE-LABlab(38.02, 38.96, -58.64)
CIE-LCHlch(38.02, 70.40, 303.60°)
OKLaboklab(48.21% 0.0473 -0.1681)
OKLCHoklch(48.21% 0.175 285.7)
XYZxyz(15.2669, 10.0984, 47.5896)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46BA #A6BA46
analogous
#466CBA #5A46BA #9446BA
triadic
#5A46BA #BA5A46 #46BA5A
tetradic
#5A46BA #BA466C #A6BA46 #46BA94
square
#5A46BA #BA466C #A6BA46 #46BA94
split-complementary
#5A46BA #BA9446 #6CBA46
monochromatic
#2F2461 #44358E #5A46BA #8273CB #AA9FDB

Accessibility & contrast

On white

6.95
#5A46BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5A46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46BA
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46BA#FFFFFF#000000##FFFFFF
##5A46BA1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#356279
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a46ba;
/* rgb */ color: rgb(90, 70, 186);
/* oklch */ color: oklch(48.2% 0.175 285.7);
Tailwind
colors: {
  custom: {
    50: '#917ad0',
    500: '#5a46ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a46ba;
$custom-light: #917ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46ba",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 250.345,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48208,
    "c": 0.17462,
    "h": 285.7
  },
  "luminance": 0.10099
}

Semantic roles & 50–950 ramp

primary
#5A46BA
secondary
#BFC894
accent
#D552BF
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5A46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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