#5B4FDC#5B4FDC

#5B4FDC is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.5% C 0.207 H 280.4°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5B4FDC
RGBrgb(91, 79, 220)
HSLhsl(245, 67%, 59%)
HSVhsv(245, 64%, 86%)
CMYKcmyk(58.6%, 64.1%, 0%, 13.7%)
CIE-LABlab(42.74, 44.34, -70.64)
CIE-LCHlch(42.74, 83.41, 302.12°)
OKLaboklab(52.49% 0.0372 -0.2033)
OKLCHoklch(52.49% 0.207 280.4)
XYZxyz(20.0246, 12.9820, 69.1468)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FDC #D0DC4F
analogous
#4F89DC #5B4FDC #A14FDC
triadic
#5B4FDC #DC5B4F #4FDC5B
tetradic
#5B4FDC #DC4F89 #D0DC4F #4FDCA1
square
#5B4FDC #DC4F89 #D0DC4F #4FDCA1
split-complementary
#5B4FDC #DCA14F #89DC4F
monochromatic
#271D93 #3527C6 #5B4FDC #8B82E6 #BAB5F0

Accessibility & contrast

On white

5.84
#5B4FDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5B4FDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FDC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FDC#FFFFFF#000000##FFFFFF
##5B4FDC1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#00738E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b4fdc;
/* rgb */ color: rgb(91, 79, 220);
/* oklch */ color: oklch(52.5% 0.207 280.4);
Tailwind
colors: {
  custom: {
    50: '#9681e8',
    500: '#5b4fdc',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fdc;
$custom-light: #9681e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fdc",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 220
  },
  "hsl": {
    "h": 245.106,
    "s": 66.825,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52493,
    "c": 0.20666,
    "h": 280.4
  },
  "luminance": 0.12983
}

Semantic roles & 50–950 ramp

primary
#5B4FDC
secondary
#DBDFA8
accent
#EA3EDB
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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