#5B4FE7#5B4FE7

#5B4FE7 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.4% C 0.220 H 279.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5B4FE7
RGBrgb(91, 79, 231)
HSLhsl(245, 76%, 61%)
HSVhsv(245, 66%, 91%)
CMYKcmyk(60.6%, 65.8%, 0%, 9.4%)
CIE-LABlab(43.63, 47.76, -75.43)
CIE-LCHlch(43.63, 89.28, 302.34°)
OKLaboklab(53.42% 0.036 -0.2173)
OKLCHoklch(53.42% 0.22 279.4)
XYZxyz(21.5296, 13.5840, 77.0733)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FE7 #DBE74F
analogous
#4F8FE7 #5B4FE7 #A74FE7
triadic
#5B4FE7 #E75B4F #4FE75B
tetradic
#5B4FE7 #E74F8F #DBE74F #4FE7A7
square
#5B4FE7 #E74F8F #DBE74F #4FE7A7
split-complementary
#5B4FE7 #E7A74F #8FE74F
monochromatic
#2217A5 #2D1EDB #5B4FE7 #8D85EE #BFBBF6

Accessibility & contrast

On white

5.65
#5B4FE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5B4FE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FE7
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FE7#FFFFFF#000000##FFFFFF
##5B4FE71.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#0061E4
Tritanopia (blue-blind)
#007694
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5b4fe7;
/* rgb */ color: rgb(91, 79, 231);
/* oklch */ color: oklch(53.4% 0.220 279.4);
Tailwind
colors: {
  custom: {
    50: '#9881f0',
    500: '#5b4fe7',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fe7;
$custom-light: #9881f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fe7",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 231
  },
  "hsl": {
    "h": 244.737,
    "s": 76,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53418,
    "c": 0.22031,
    "h": 279.4
  },
  "luminance": 0.13586
}

Semantic roles & 50–950 ramp

primary
#5B4FE7
secondary
#E1E6AC
accent
#D80DC8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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