#5A46BD#5A46BD

#5A46BD is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.4% C 0.178 H 285.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5A46BD
RGBrgb(90, 70, 189)
HSLhsl(250, 47%, 51%)
HSVhsv(250, 63%, 74%)
CMYKcmyk(52.4%, 63%, 0%, 25.9%)
CIE-LABlab(38.25, 39.87, -60.03)
CIE-LCHlch(38.25, 72.07, 303.59°)
OKLaboklab(48.45% 0.0471 -0.1722)
OKLCHoklch(48.45% 0.178 285.3)
XYZxyz(15.5892, 10.2273, 49.2869)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46BD #A9BD46
analogous
#466DBD #5A46BD #9546BD
triadic
#5A46BD #BD5A46 #46BD5A
tetradic
#5A46BD #BD466D #A9BD46 #46BD95
square
#5A46BD #BD466D #A9BD46 #46BD95
split-complementary
#5A46BD #BD9546 #6DBD46
monochromatic
#2F2465 #443492 #5A46BD #8273CD #AAA0DD

Accessibility & contrast

On white

6.90
#5A46BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5A46BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46BD
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46BD#FFFFFF#000000##FFFFFF
##5A46BD1.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#33637B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a46bd;
/* rgb */ color: rgb(90, 70, 189);
/* oklch */ color: oklch(48.4% 0.178 285.3);
Tailwind
colors: {
  custom: {
    50: '#917ad2',
    500: '#5a46bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a46bd;
$custom-light: #917ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46bd",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 189
  },
  "hsl": {
    "h": 250.084,
    "s": 47.41,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48447,
    "c": 0.17849,
    "h": 285.3
  },
  "luminance": 0.10228
}

Semantic roles & 50–950 ramp

primary
#5A46BD
secondary
#C1CA95
accent
#D751C0
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A46BD

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

Preview Lab → · Contrast checker → · Palette generator →

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