#5B4FE3#5B4FE3

#5B4FE3 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.1% C 0.215 H 279.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5B4FE3
RGBrgb(91, 79, 227)
HSLhsl(245, 73%, 60%)
HSVhsv(245, 65%, 89%)
CMYKcmyk(59.9%, 65.2%, 0%, 11%)
CIE-LABlab(43.30, 46.52, -73.70)
CIE-LCHlch(43.30, 87.16, 302.26°)
OKLaboklab(53.08% 0.0365 -0.2123)
OKLCHoklch(53.08% 0.215 279.8)
XYZxyz(20.9711, 13.3606, 74.1319)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FE3 #D7E34F
analogous
#4F8DE3 #5B4FE3 #A54FE3
triadic
#5B4FE3 #E35B4F #4FE35B
tetradic
#5B4FE3 #E34F8D #D7E34F #4FE3A5
square
#5B4FE3 #E34F8D #D7E34F #4FE3A5
split-complementary
#5B4FE3 #E3A54F #8DE34F
monochromatic
#24199E #3022D3 #5B4FE3 #8C84EB #BDB9F4

Accessibility & contrast

On white

5.72
#5B4FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5B4FE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FE3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FE3#FFFFFF#000000##FFFFFF
##5B4FE31.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE8
Deuteranopia (green-blind)
#0061E0
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b4fe3;
/* rgb */ color: rgb(91, 79, 227);
/* oklch */ color: oklch(53.1% 0.215 279.8);
Tailwind
colors: {
  custom: {
    50: '#9781ed',
    500: '#5b4fe3',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fe3;
$custom-light: #9781ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fe3",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 227
  },
  "hsl": {
    "h": 244.865,
    "s": 72.549,
    "l": 60
  },
  "oklch": {
    "l": 0.53078,
    "c": 0.21538,
    "h": 279.8
  },
  "luminance": 0.13362
}

Semantic roles & 50–950 ramp

primary
#5B4FE3
secondary
#DFE3AA
accent
#EF39E0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5B4FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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