#5B4BE2#5B4BE2

#5B4BE2 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.4% C 0.219 H 280.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5B4BE2
RGBrgb(91, 75, 226)
HSLhsl(246, 72%, 59%)
HSVhsv(246, 67%, 89%)
CMYKcmyk(59.7%, 66.8%, 0%, 11.4%)
CIE-LABlab(42.38, 48.49, -74.64)
CIE-LCHlch(42.38, 89.01, 303.01°)
OKLaboklab(52.39% 0.0398 -0.215)
OKLCHoklch(52.39% 0.219 280.5)
XYZxyz(20.5536, 12.7458, 73.3139)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BE2 #D2E24B
analogous
#4B87E2 #5B4BE2 #A74BE2
triadic
#5B4BE2 #E25B4B #4BE25B
tetradic
#5B4BE2 #E24B87 #D2E24B #4BE2A7
square
#5B4BE2 #E24B87 #D2E24B #4BE2A7
split-complementary
#5B4BE2 #E2A74B #87E24B
monochromatic
#26199A #3421CF #5B4BE2 #8B80EA #BBB4F3

Accessibility & contrast

On white

5.92
#5B4BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5B4BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BE2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BE2#FFFFFF#000000##FFFFFF
##5B4BE21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007290
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b4be2;
/* rgb */ color: rgb(91, 75, 226);
/* oklch */ color: oklch(52.4% 0.219 280.5);
Tailwind
colors: {
  custom: {
    50: '#977fec',
    500: '#5b4be2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4be2;
$custom-light: #977fec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4be2",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 226
  },
  "hsl": {
    "h": 246.358,
    "s": 72.249,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52385,
    "c": 0.2187,
    "h": 280.5
  },
  "luminance": 0.12747
}

Semantic roles & 50–950 ramp

primary
#5B4BE2
secondary
#DCE2A7
accent
#EF39DC
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5B4BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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