#5A46CB#5A46CB

#5A46CB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.6% C 0.196 H 283.5°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5A46CB
RGBrgb(90, 70, 203)
HSLhsl(249, 56%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(55.7%, 65.5%, 0%, 20.4%)
CIE-LABlab(39.35, 44.13, -66.39)
CIE-LCHlch(39.35, 79.72, 303.61°)
OKLaboklab(49.59% 0.0457 -0.1909)
OKLCHoklch(49.59% 0.196 283.5)
XYZxyz(17.1828, 10.8647, 57.6800)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46CB #B7CB46
analogous
#4674CB #5A46CB #9D46CB
triadic
#5A46CB #CB5A46 #46CB5A
tetradic
#5A46CB #CB4674 #B7CB46 #46CB9D
square
#5A46CB #CB4674 #B7CB46 #46CB9D
split-complementary
#5A46CB #CB9D46 #74CB46
monochromatic
#2E2176 #402EA5 #5A46CB #8576D8 #AFA6E6

Accessibility & contrast

On white

6.62
#5A46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5A46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46CB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46CB#FFFFFF#000000##FFFFFF
##5A46CB1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#236882
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a46cb;
/* rgb */ color: rgb(90, 70, 203);
/* oklch */ color: oklch(49.6% 0.196 283.5);
Tailwind
colors: {
  custom: {
    50: '#937bdc',
    500: '#5a46cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a46cb;
$custom-light: #937bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46cb",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 249.023,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49593,
    "c": 0.19625,
    "h": 283.5
  },
  "luminance": 0.10866
}

Semantic roles & 50–950 ramp

primary
#5A46CB
secondary
#CAD39A
accent
#DF48C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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