#5B48CF#5B48CF

#5B48CF is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.3% C 0.199 H 283.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5B48CF
RGBrgb(91, 72, 207)
HSLhsl(248, 58%, 55%)
HSVhsv(248, 65%, 81%)
CMYKcmyk(56%, 65.2%, 0%, 18.8%)
CIE-LABlab(40.18, 44.37, -67.34)
CIE-LCHlch(40.18, 80.65, 303.38°)
OKLaboklab(50.32% 0.0447 -0.1936)
OKLCHoklch(50.32% 0.199 283)
XYZxyz(17.8908, 11.3628, 60.2699)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48CF #BCCF48
analogous
#4879CF #5B48CF #9E48CF
triadic
#5B48CF #CF5B48 #48CF5B
tetradic
#5B48CF #CF4879 #BCCF48 #48CF9E
square
#5B48CF #CF4879 #BCCF48 #48CF9E
split-complementary
#5B48CF #CF9E48 #79CF48
monochromatic
#2D217C #3F2DAD #5B48CF #8678DC #B2A9E8

Accessibility & contrast

On white

6.42
#5B48CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5B48CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B48CF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48CF#FFFFFF#000000##FFFFFF
##5B48CF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#216A85
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b48cf;
/* rgb */ color: rgb(91, 72, 207);
/* oklch */ color: oklch(50.3% 0.199 283.0);
Tailwind
colors: {
  custom: {
    50: '#947cdf',
    500: '#5b48cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b48cf;
$custom-light: #947cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48cf",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 248.444,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50318,
    "c": 0.19872,
    "h": 283
  },
  "luminance": 0.11364
}

Semantic roles & 50–950 ramp

primary
#5B48CF
secondary
#CED69D
accent
#E246CC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B48CF

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

Preview Lab → · Contrast checker → · Palette generator →

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