#5A46CA#5A46CA

#5A46CA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.5% C 0.195 H 283.6°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5A46CA
RGBrgb(90, 70, 202)
HSLhsl(249, 55%, 53%)
HSVhsv(249, 65%, 79%)
CMYKcmyk(55.4%, 65.3%, 0%, 20.8%)
CIE-LABlab(39.27, 43.83, -65.95)
CIE-LCHlch(39.27, 79.18, 303.61°)
OKLaboklab(49.51% 0.0458 -0.1895)
OKLCHoklch(49.51% 0.195 283.6)
XYZxyz(17.0640, 10.8172, 57.0544)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46CA #B6CA46
analogous
#4674CA #5A46CA #9C46CA
triadic
#5A46CA #CA5A46 #46CA5A
tetradic
#5A46CA #CA4674 #B6CA46 #46CA9C
square
#5A46CA #CA4674 #B6CA46 #46CA9C
split-complementary
#5A46CA #CA9C46 #74CA46
monochromatic
#2E2174 #412FA4 #5A46CA #8476D8 #AFA5E5

Accessibility & contrast

On white

6.64
#5A46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5A46CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46CA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46CA#FFFFFF#000000##FFFFFF
##5A46CA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#256782
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a46ca;
/* rgb */ color: rgb(90, 70, 202);
/* oklch */ color: oklch(49.5% 0.195 283.6);
Tailwind
colors: {
  custom: {
    50: '#937bdb',
    500: '#5a46ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a46ca;
$custom-light: #937bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46ca",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 249.091,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.4951,
    "c": 0.195,
    "h": 283.6
  },
  "luminance": 0.10818
}

Semantic roles & 50–950 ramp

primary
#5A46CA
secondary
#CAD29A
accent
#DF49C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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