#5B46CB#5B46CB

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

Color values

HEX#5B46CB
RGBrgb(91, 70, 203)
HSLhsl(249, 56%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(55.2%, 65.5%, 0%, 20.4%)
CIE-LABlab(39.44, 44.30, -66.25)
CIE-LCHlch(39.44, 79.70, 303.77°)
OKLaboklab(49.68% 0.047 -0.1904)
OKLCHoklch(49.68% 0.196 283.9)
XYZxyz(17.2807, 10.9152, 57.6846)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46CB #B6CB46
analogous
#4673CB #5B46CB #9D46CB
triadic
#5B46CB #CB5B46 #46CB5B
tetradic
#5B46CB #CB4673 #B6CB46 #46CB9D
square
#5B46CB #CB4673 #B6CB46 #46CB9D
split-complementary
#5B46CB #CB9D46 #73CB46
monochromatic
#2E2176 #412EA5 #5B46CB #8576D8 #B0A6E6

Accessibility & contrast

On white

6.60
#5B46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5B46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46CB
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46CB#FFFFFF#000000##FFFFFF
##5B46CB1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b46cb;
/* rgb */ color: rgb(91, 70, 203);
/* oklch */ color: oklch(49.7% 0.196 283.9);
Tailwind
colors: {
  custom: {
    50: '#947bdc',
    500: '#5b46cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b46cb;
$custom-light: #947bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46cb",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 249.474,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49677,
    "c": 0.19612,
    "h": 283.9
  },
  "luminance": 0.10916
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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