#5B4FCF#5B4FCF

#5B4FCF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.4% C 0.190 H 281.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5B4FCF
RGBrgb(91, 79, 207)
HSLhsl(246, 57%, 56%)
HSVhsv(246, 62%, 81%)
CMYKcmyk(56%, 61.8%, 0%, 18.8%)
CIE-LABlab(41.72, 40.29, -64.84)
CIE-LCHlch(41.72, 76.34, 301.85°)
OKLaboklab(51.43% 0.0383 -0.1862)
OKLCHoklch(51.43% 0.19 281.6)
XYZxyz(18.3694, 12.3199, 60.4294)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FCF #C3CF4F
analogous
#4F83CF #5B4FCF #9B4FCF
triadic
#5B4FCF #CF5B4F #4FCF5B
tetradic
#5B4FCF #CF4F83 #C3CF4F #4FCF9B
square
#5B4FCF #CF4F83 #C3CF4F #4FCF9B
split-complementary
#5B4FCF #CF9B4F #83CF4F
monochromatic
#2C2381 #3C30B1 #5B4FCF #887FDC #B5AFE9

Accessibility & contrast

On white

6.06
#5B4FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5B4FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FCF
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FCF#FFFFFF#000000##FFFFFF
##5B4FCF1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#1F6E87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4fcf;
/* rgb */ color: rgb(91, 79, 207);
/* oklch */ color: oklch(51.4% 0.190 281.6);
Tailwind
colors: {
  custom: {
    50: '#9481df',
    500: '#5b4fcf',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fcf;
$custom-light: #9481df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fcf",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 207
  },
  "hsl": {
    "h": 245.625,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51435,
    "c": 0.19014,
    "h": 281.6
  },
  "luminance": 0.12321
}

Semantic roles & 50–950 ramp

primary
#5B4FCF
secondary
#D2D7A2
accent
#E047D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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