#5B46DC#5B46DC

#5B46DC is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.1% C 0.217 H 281.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5B46DC
RGBrgb(91, 70, 220)
HSLhsl(248, 68%, 57%)
HSVhsv(248, 68%, 86%)
CMYKcmyk(58.6%, 68.2%, 0%, 13.7%)
CIE-LABlab(40.85, 49.45, -73.73)
CIE-LCHlch(40.85, 88.77, 303.85°)
OKLaboklab(51.13% 0.0446 -0.2123)
OKLCHoklch(51.13% 0.217 281.9)
XYZxyz(19.4188, 11.7705, 68.9449)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46DC #C7DC46
analogous
#467CDC #5B46DC #A646DC
triadic
#5B46DC #DC5B46 #46DC5B
tetradic
#5B46DC #DC467C #C7DC46 #46DCA6
square
#5B46DC #DC467C #C7DC46 #46DCA6
split-complementary
#5B46DC #DCA646 #7CDC46
monochromatic
#2B1B8D #3A24C0 #5B46DC #8979E6 #B6ADEF

Accessibility & contrast

On white

6.26
#5B46DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5B46DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46DC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46DC#FFFFFF#000000##FFFFFF
##5B46DC1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005BD9
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b46dc;
/* rgb */ color: rgb(91, 70, 220);
/* oklch */ color: oklch(51.1% 0.217 281.9);
Tailwind
colors: {
  custom: {
    50: '#967be8',
    500: '#5b46dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b46dc;
$custom-light: #967be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46dc",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 220
  },
  "hsl": {
    "h": 248.4,
    "s": 68.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51129,
    "c": 0.21698,
    "h": 281.9
  },
  "luminance": 0.11772
}

Semantic roles & 50–950 ramp

primary
#5B46DC
secondary
#D5DDA0
accent
#EB3DD3
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B46DC

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

Preview Lab → · Contrast checker → · Palette generator →

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