#5B46FF#5B46FF

#5B46FF is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 54.3% C 0.258 H 278.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5B46FF
RGBrgb(91, 70, 255)
HSLhsl(247, 100%, 64%)
HSVhsv(247, 73%, 100%)
CMYKcmyk(64.3%, 72.5%, 0%, 0%)
CIE-LABlab(43.98, 59.90, -88.34)
CIE-LCHlch(43.98, 106.74, 304.14°)
OKLaboklab(54.31% 0.0383 -0.2551)
OKLCHoklch(54.31% 0.258 278.5)
XYZxyz(24.5487, 13.8224, 95.9627)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46FF #EAFF46
analogous
#468DFF #5B46FF #B746FF
triadic
#5B46FF #FF5B46 #46FF5B
tetradic
#5B46FF #FF468D #EAFF46 #46FFB7
square
#5B46FF #FF468D #EAFF46 #46FFB7
split-complementary
#5B46FF #FFB746 #8DFF46
monochromatic
#1700CB #2509FF #5B46FF #9183FF #C8C0FF

Accessibility & contrast

On white

5.58
#5B46FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5B46FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46FF
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46FF#FFFFFF#000000##FFFFFF
##5B46FF1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFF
Deuteranopia (green-blind)
#0060FC
Tritanopia (blue-blind)
#007B9F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b46ff;
/* rgb */ color: rgb(91, 70, 255);
/* oklch */ color: oklch(54.3% 0.258 278.5);
Tailwind
colors: {
  custom: {
    50: '#9c7dff',
    500: '#5b46ff',
    950: '#000000',
  },
}
SCSS
$custom: #5b46ff;
$custom-light: #9c7dff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46ff",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 255
  },
  "hsl": {
    "h": 246.811,
    "s": 100,
    "l": 63.725
  },
  "oklch": {
    "l": 0.54308,
    "c": 0.25795,
    "h": 278.5
  },
  "luminance": 0.13824
}

Semantic roles & 50–950 ramp

primary
#5B46FF
secondary
#EAF1B0
accent
#E600CB
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5B46FF

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

Preview Lab → · Contrast checker → · Palette generator →

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