#5B4FE5#5B4FE5

#5B4FE5 is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.2% C 0.218 H 279.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5B4FE5
RGBrgb(91, 79, 229)
HSLhsl(245, 74%, 60%)
HSVhsv(245, 66%, 90%)
CMYKcmyk(60.3%, 65.5%, 0%, 10.2%)
CIE-LABlab(43.47, 47.14, -74.57)
CIE-LCHlch(43.47, 88.22, 302.30°)
OKLaboklab(53.25% 0.0363 -0.2148)
OKLCHoklch(53.25% 0.218 279.6)
XYZxyz(21.2487, 13.4717, 75.5941)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FE5 #D9E54F
analogous
#4F8EE5 #5B4FE5 #A64FE5
triadic
#5B4FE5 #E55B4F #4FE55B
tetradic
#5B4FE5 #E54F8E #D9E54F #4FE5A6
square
#5B4FE5 #E54F8E #D9E54F #4FE5A6
split-complementary
#5B4FE5 #E5A64F #8EE54F
monochromatic
#2318A2 #2E20D7 #5B4FE5 #8D84ED #BEBAF5

Accessibility & contrast

On white

5.68
#5B4FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5B4FE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FE5
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FE5#FFFFFF#000000##FFFFFF
##5B4FE51.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007693
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5b4fe5;
/* rgb */ color: rgb(91, 79, 229);
/* oklch */ color: oklch(53.2% 0.218 279.6);
Tailwind
colors: {
  custom: {
    50: '#9781ee',
    500: '#5b4fe5',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fe5;
$custom-light: #9781ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fe5",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 229
  },
  "hsl": {
    "h": 244.8,
    "s": 74.257,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53248,
    "c": 0.21785,
    "h": 279.6
  },
  "luminance": 0.13473
}

Semantic roles & 50–950 ramp

primary
#5B4FE5
secondary
#E0E5AB
accent
#D60FC6
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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