#5B4FEA#5B4FEA

#5B4FEA is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.7% C 0.224 H 279.2°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5B4FEA
RGBrgb(91, 79, 234)
HSLhsl(245, 79%, 61%)
HSVhsv(245, 66%, 92%)
CMYKcmyk(61.1%, 66.2%, 0%, 8.2%)
CIE-LABlab(43.88, 48.69, -76.72)
CIE-LCHlch(43.88, 90.87, 302.40°)
OKLaboklab(53.67% 0.0357 -0.2211)
OKLCHoklch(53.67% 0.224 279.2)
XYZxyz(21.9569, 13.7550, 79.3239)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FEA #DEEA4F
analogous
#4F91EA #5B4FEA #A94FEA
triadic
#5B4FEA #EA5B4F #4FEA5B
tetradic
#5B4FEA #EA4F91 #DEEA4F #4FEAA9
square
#5B4FEA #EA4F91 #DEEA4F #4FEAA9
split-complementary
#5B4FEA #EAA94F #91EA4F
monochromatic
#2014AA #2A1BE1 #5B4FEA #8E86F1 #C1BCF7

Accessibility & contrast

On white

5.60
#5B4FEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5B4FEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FEA
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FEA#FFFFFF#000000##FFFFFF
##5B4FEA1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEF
Deuteranopia (green-blind)
#0062E7
Tritanopia (blue-blind)
#007796
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b4fea;
/* rgb */ color: rgb(91, 79, 234);
/* oklch */ color: oklch(53.7% 0.224 279.2);
Tailwind
colors: {
  custom: {
    50: '#9881f2',
    500: '#5b4fea',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fea;
$custom-light: #9881f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fea",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 234
  },
  "hsl": {
    "h": 244.645,
    "s": 78.68,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53674,
    "c": 0.22398,
    "h": 279.2
  },
  "luminance": 0.13757
}

Semantic roles & 50–950 ramp

primary
#5B4FEA
secondary
#E3E7AD
accent
#DB0BCB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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