#5B4ECF#5B4ECF

#5B4ECF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.3% C 0.191 H 281.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5B4ECF
RGBrgb(91, 78, 207)
HSLhsl(246, 57%, 56%)
HSVhsv(246, 62%, 81%)
CMYKcmyk(56%, 62.3%, 0%, 18.8%)
CIE-LABlab(41.50, 40.88, -65.21)
CIE-LCHlch(41.50, 76.96, 302.09°)
OKLaboklab(51.27% 0.0392 -0.1873)
OKLCHoklch(51.27% 0.191 281.8)
XYZxyz(18.2978, 12.1768, 60.4055)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4ECF #C2CF4E
analogous
#4E81CF #5B4ECF #9C4ECF
triadic
#5B4ECF #CF5B4E #4ECF5B
tetradic
#5B4ECF #CF4E81 #C2CF4E #4ECF9C
square
#5B4ECF #CF4E81 #C2CF4E #4ECF9C
split-complementary
#5B4ECF #CF9C4E #81CF4E
monochromatic
#2C2380 #3D30B0 #5B4ECF #887EDC #B4AEE9

Accessibility & contrast

On white

6.11
#5B4ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5B4ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4ECF
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4ECF#FFFFFF#000000##FFFFFF
##5B4ECF1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#1F6E87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4ecf;
/* rgb */ color: rgb(91, 78, 207);
/* oklch */ color: oklch(51.3% 0.191 281.8);
Tailwind
colors: {
  custom: {
    50: '#9480df',
    500: '#5b4ecf',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ecf;
$custom-light: #9480df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ecf",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 207
  },
  "hsl": {
    "h": 246.047,
    "s": 57.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51271,
    "c": 0.19139,
    "h": 281.8
  },
  "luminance": 0.12178
}

Semantic roles & 50–950 ramp

primary
#5B4ECF
secondary
#D2D7A2
accent
#E147D1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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