#5B46C8#5B46C8

#5B46C8 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.4% C 0.192 H 284.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5B46C8
RGBrgb(91, 70, 200)
HSLhsl(250, 54%, 53%)
HSVhsv(250, 65%, 78%)
CMYKcmyk(54.5%, 65%, 0%, 21.6%)
CIE-LABlab(39.20, 43.39, -64.90)
CIE-LCHlch(39.20, 78.07, 303.77°)
OKLaboklab(49.43% 0.0473 -0.1864)
OKLCHoklch(49.43% 0.192 284.2)
XYZxyz(16.9267, 10.7736, 55.8200)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46C8 #B3C846
analogous
#4672C8 #5B46C8 #9C46C8
triadic
#5B46C8 #C85B46 #46C85B
tetradic
#5B46C8 #C84672 #B3C846 #46C89C
square
#5B46C8 #C84672 #B3C846 #46C89C
split-complementary
#5B46C8 #C89C46 #72C846
monochromatic
#2F2272 #4230A1 #5B46C8 #8575D6 #AFA4E4

Accessibility & contrast

On white

6.66
#5B46C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5B46C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46C8
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46C8#FFFFFF#000000##FFFFFF
##5B46C81.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#2A6681
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b46c8;
/* rgb */ color: rgb(91, 70, 200);
/* oklch */ color: oklch(49.4% 0.192 284.2);
Tailwind
colors: {
  custom: {
    50: '#937bda',
    500: '#5b46c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b46c8;
$custom-light: #937bda;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46c8",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 249.692,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49427,
    "c": 0.19236,
    "h": 284.2
  },
  "luminance": 0.10775
}

Semantic roles & 50–950 ramp

primary
#5B46C8
secondary
#C8D199
accent
#DE4AC6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B46C8

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

Preview Lab → · Contrast checker → · Palette generator →

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