#5B4FCA#5B4FCA

#5B4FCA is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.184 H 282.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5B4FCA
RGBrgb(91, 79, 202)
HSLhsl(246, 54%, 55%)
HSVhsv(246, 61%, 79%)
CMYKcmyk(55%, 60.9%, 0%, 20.8%)
CIE-LABlab(41.34, 38.73, -62.57)
CIE-LCHlch(41.34, 73.58, 301.76°)
OKLaboklab(51.04% 0.0386 -0.1796)
OKLCHoklch(51.04% 0.184 282.1)
XYZxyz(17.7677, 12.0793, 57.2609)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FCA #BECA4F
analogous
#4F80CA #5B4FCA #994FCA
triadic
#5B4FCA #CA5B4F #4FCA5B
tetradic
#5B4FCA #CA4F80 #BECA4F #4FCA99
square
#5B4FCA #CA4F80 #BECA4F #4FCA99
split-complementary
#5B4FCA #CA994F #80CA4F
monochromatic
#2D257A #3E33A9 #5B4FCA #877ED8 #B3ADE6

Accessibility & contrast

On white

6.15
#5B4FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5B4FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FCA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FCA#FFFFFF#000000##FFFFFF
##5B4FCA1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#266D85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b4fca;
/* rgb */ color: rgb(91, 79, 202);
/* oklch */ color: oklch(51.0% 0.184 282.1);
Tailwind
colors: {
  custom: {
    50: '#9381db',
    500: '#5b4fca',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fca;
$custom-light: #9381db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fca",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 245.854,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51039,
    "c": 0.18366,
    "h": 282.1
  },
  "luminance": 0.1208
}

Semantic roles & 50–950 ramp

primary
#5B4FCA
secondary
#CFD4A1
accent
#DD4BCF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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