#5B4BCA#5B4BCA

#5B4BCA is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.4% C 0.189 H 283.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5B4BCA
RGBrgb(91, 75, 202)
HSLhsl(248, 55%, 54%)
HSVhsv(248, 63%, 79%)
CMYKcmyk(55%, 62.9%, 0%, 20.8%)
CIE-LABlab(40.44, 41.10, -64.03)
CIE-LCHlch(40.44, 76.09, 302.69°)
OKLaboklab(50.38% 0.0424 -0.1839)
OKLCHoklch(50.38% 0.189 283)
XYZxyz(17.4879, 11.5195, 57.1677)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BCA #BACA4B
analogous
#4B7BCA #5B4BCA #9B4BCA
triadic
#5B4BCA #CA5B4B #4BCA5B
tetradic
#5B4BCA #CA4B7B #BACA4B #4BCA9B
square
#5B4BCA #CA4B7B #BACA4B #4BCA9B
split-complementary
#5B4BCA #CA9B4B #7BCA4B
monochromatic
#2E2377 #4031A7 #5B4BCA #867AD8 #B1AAE6

Accessibility & contrast

On white

6.36
#5B4BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5B4BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BCA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BCA#FFFFFF#000000##FFFFFF
##5B4BCA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#276A83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4bca;
/* rgb */ color: rgb(91, 75, 202);
/* oklch */ color: oklch(50.4% 0.189 283.0);
Tailwind
colors: {
  custom: {
    50: '#937edb',
    500: '#5b4bca',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bca;
$custom-light: #937edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bca",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 247.559,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50381,
    "c": 0.18872,
    "h": 283
  },
  "luminance": 0.11521
}

Semantic roles & 50–950 ramp

primary
#5B4BCA
secondary
#CDD39D
accent
#DE4ACB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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