#5A46BF#5A46BF

#5A46BF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.6% C 0.181 H 285.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5A46BF
RGBrgb(90, 70, 191)
HSLhsl(250, 49%, 51%)
HSVhsv(250, 63%, 75%)
CMYKcmyk(52.9%, 63.4%, 0%, 25.1%)
CIE-LABlab(38.40, 40.48, -60.95)
CIE-LCHlch(38.40, 73.17, 303.59°)
OKLaboklab(48.61% 0.0469 -0.1749)
OKLCHoklch(48.61% 0.181 285)
XYZxyz(15.8078, 10.3147, 50.4381)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46BF #ABBF46
analogous
#466EBF #5A46BF #9646BF
triadic
#5A46BF #BF5A46 #46BF5A
tetradic
#5A46BF #BF466E #ABBF46 #46BF96
square
#5A46BF #BF466E #ABBF46 #46BF96
split-complementary
#5A46BF #BF9646 #6EBF46
monochromatic
#2F2467 #433394 #5A46BF #8373CF #ABA1DE

Accessibility & contrast

On white

6.86
#5A46BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A46BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46BF
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46BF#FFFFFF#000000##FFFFFF
##5A46BF1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#31637C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a46bf;
/* rgb */ color: rgb(90, 70, 191);
/* oklch */ color: oklch(48.6% 0.181 285.0);
Tailwind
colors: {
  custom: {
    50: '#917ad3',
    500: '#5a46bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a46bf;
$custom-light: #917ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46bf",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 249.917,
    "s": 48.594,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48608,
    "c": 0.18106,
    "h": 285
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#5A46BF
secondary
#C2CB96
accent
#D850C2
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A46BF

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

Preview Lab → · Contrast checker → · Palette generator →

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