#5A46BB#5A46BB

#5A46BB is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.3% C 0.176 H 285.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5A46BB
RGBrgb(90, 70, 187)
HSLhsl(250, 46%, 50%)
HSVhsv(250, 63%, 73%)
CMYKcmyk(51.9%, 62.6%, 0%, 26.7%)
CIE-LABlab(38.09, 39.26, -59.11)
CIE-LCHlch(38.09, 70.96, 303.59°)
OKLaboklab(48.29% 0.0472 -0.1695)
OKLCHoklch(48.29% 0.176 285.6)
XYZxyz(15.3736, 10.1410, 48.1514)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46BB #A7BB46
analogous
#466DBB #5A46BB #9446BB
triadic
#5A46BB #BB5A46 #46BB5A
tetradic
#5A46BB #BB466D #A7BB46 #46BB94
square
#5A46BB #BB466D #A7BB46 #46BB94
split-complementary
#5A46BB #BB9446 #6DBB46
monochromatic
#2F2462 #44358F #5A46BB #8273CB #AAA0DC

Accessibility & contrast

On white

6.93
#5A46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5A46BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46BB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46BB#FFFFFF#000000##FFFFFF
##5A46BB1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#34627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a46bb;
/* rgb */ color: rgb(90, 70, 187);
/* oklch */ color: oklch(48.3% 0.176 285.6);
Tailwind
colors: {
  custom: {
    50: '#917ad0',
    500: '#5a46bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a46bb;
$custom-light: #917ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46bb",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 250.256,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48288,
    "c": 0.17592,
    "h": 285.6
  },
  "luminance": 0.10142
}

Semantic roles & 50–950 ramp

primary
#5A46BB
secondary
#C0C894
accent
#D652BF
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5A46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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