#5B46CA#5B46CA

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

Color values

HEX#5B46CA
RGBrgb(91, 70, 202)
HSLhsl(250, 55%, 53%)
HSVhsv(250, 65%, 79%)
CMYKcmyk(55%, 65.3%, 0%, 20.8%)
CIE-LABlab(39.36, 44.00, -65.80)
CIE-LCHlch(39.36, 79.16, 303.77°)
OKLaboklab(49.59% 0.0471 -0.1891)
OKLCHoklch(49.59% 0.195 284)
XYZxyz(17.1620, 10.8677, 57.0590)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46CA #B5CA46
analogous
#4673CA #5B46CA #9D46CA
triadic
#5B46CA #CA5B46 #46CA5B
tetradic
#5B46CA #CA4673 #B5CA46 #46CA9D
square
#5B46CA #CA4673 #B5CA46 #46CA9D
split-complementary
#5B46CA #CA9D46 #73CA46
monochromatic
#2F2174 #422FA4 #5B46CA #8576D8 #AFA5E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B46CA#FFFFFF#000000##FFFFFF
##5B46CA1.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)
#0061CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#286782
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b46ca;
/* rgb */ color: rgb(91, 70, 202);
/* oklch */ color: oklch(49.6% 0.195 284.0);
Tailwind
colors: {
  custom: {
    50: '#947bdb',
    500: '#5b46ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b46ca;
$custom-light: #947bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46ca",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 249.545,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49593,
    "c": 0.19487,
    "h": 284
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

primary
#5B46CA
secondary
#C9D29A
accent
#DF49C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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