#5B46CC#5B46CC

#5B46CC is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.8% C 0.197 H 283.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5B46CC
RGBrgb(91, 70, 204)
HSLhsl(249, 57%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(55.4%, 65.7%, 0%, 20%)
CIE-LABlab(39.52, 44.60, -66.70)
CIE-LCHlch(39.52, 80.24, 303.77°)
OKLaboklab(49.76% 0.0469 -0.1917)
OKLCHoklch(49.76% 0.197 283.7)
XYZxyz(17.4003, 10.9631, 58.3142)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46CC #B7CC46
analogous
#4674CC #5B46CC #9E46CC
triadic
#5B46CC #CC5B46 #46CC5B
tetradic
#5B46CC #CC4674 #B7CC46 #46CC9E
square
#5B46CC #CC4674 #B7CC46 #46CC9E
split-complementary
#5B46CC #CC9E46 #74CC46
monochromatic
#2E2177 #412EA7 #5B46CC #8676D9 #B0A6E6

Accessibility & contrast

On white

6.58
#5B46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5B46CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46CC
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46CC#FFFFFF#000000##FFFFFF
##5B46CC1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#256883
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b46cc;
/* rgb */ color: rgb(91, 70, 204);
/* oklch */ color: oklch(49.8% 0.197 283.7);
Tailwind
colors: {
  custom: {
    50: '#947bdd',
    500: '#5b46cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b46cc;
$custom-light: #947bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46cc",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 249.403,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.4976,
    "c": 0.19737,
    "h": 283.7
  },
  "luminance": 0.10964
}

Semantic roles & 50–950 ramp

primary
#5B46CC
secondary
#CBD49A
accent
#E048C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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