#5B46EC#5B46EC

#5B46EC is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.6% C 0.236 H 280.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5B46EC
RGBrgb(91, 70, 236)
HSLhsl(248, 81%, 60%)
HSVhsv(248, 70%, 93%)
CMYKcmyk(61.4%, 70.3%, 0%, 7.5%)
CIE-LABlab(42.24, 54.26, -80.53)
CIE-LCHlch(42.24, 97.10, 303.97°)
OKLaboklab(52.55% 0.042 -0.2323)
OKLCHoklch(52.55% 0.236 280.2)
XYZxyz(21.6401, 12.6590, 80.6437)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46EC #D7EC46
analogous
#4684EC #5B46EC #AE46EC
triadic
#5B46EC #EC5B46 #46EC5B
tetradic
#5B46EC #EC4684 #D7EC46 #46ECAE
square
#5B46EC #EC4684 #D7EC46 #46ECAE
split-complementary
#5B46EC #ECAE46 #84EC46
monochromatic
#2411A7 #3017DE #5B46EC #8C7DF2 #BDB5F7

Accessibility & contrast

On white

5.95
#5B46EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5B46EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46EC
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46EC#FFFFFF#000000##FFFFFF
##5B46EC1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF1
Deuteranopia (green-blind)
#005DE9
Tritanopia (blue-blind)
#007394
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b46ec;
/* rgb */ color: rgb(91, 70, 236);
/* oklch */ color: oklch(52.6% 0.236 280.2);
Tailwind
colors: {
  custom: {
    50: '#997cf3',
    500: '#5b46ec',
    950: '#000000',
  },
}
SCSS
$custom: #5b46ec;
$custom-light: #997cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46ec",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 236
  },
  "hsl": {
    "h": 247.59,
    "s": 81.373,
    "l": 60
  },
  "oklch": {
    "l": 0.52554,
    "c": 0.23603,
    "h": 280.2
  },
  "luminance": 0.12661
}

Semantic roles & 50–950 ramp

primary
#5B46EC
secondary
#DFE7A7
accent
#F830DE
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B46EC

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

Preview Lab → · Contrast checker → · Palette generator →

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