#5B4FE2#5B4FE2

#5B4FE2 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.0% C 0.214 H 279.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5B4FE2
RGBrgb(91, 79, 226)
HSLhsl(245, 72%, 60%)
HSVhsv(245, 65%, 89%)
CMYKcmyk(59.7%, 65%, 0%, 11.4%)
CIE-LABlab(43.22, 46.21, -73.27)
CIE-LCHlch(43.22, 86.62, 302.24°)
OKLaboklab(52.99% 0.0366 -0.211)
OKLCHoklch(52.99% 0.214 279.8)
XYZxyz(20.8335, 13.3056, 73.4072)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FE2 #D6E24F
analogous
#4F8DE2 #5B4FE2 #A54FE2
triadic
#5B4FE2 #E25B4F #4FE25B
tetradic
#5B4FE2 #E24F8D #D6E24F #4FE2A5
square
#5B4FE2 #E24F8D #D6E24F #4FE2A5
split-complementary
#5B4FE2 #E2A54F #8DE24F
monochromatic
#251A9D #3122D1 #5B4FE2 #8C84EB #BDB8F3

Accessibility & contrast

On white

5.74
#5B4FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5B4FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FE2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FE2#FFFFFF#000000##FFFFFF
##5B4FE21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b4fe2;
/* rgb */ color: rgb(91, 79, 226);
/* oklch */ color: oklch(53.0% 0.214 279.8);
Tailwind
colors: {
  custom: {
    50: '#9781ec',
    500: '#5b4fe2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fe2;
$custom-light: #9781ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fe2",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 244.898,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52994,
    "c": 0.21414,
    "h": 279.8
  },
  "luminance": 0.13307
}

Semantic roles & 50–950 ramp

primary
#5B4FE2
secondary
#DEE3AA
accent
#EE39E0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5B4FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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