#5B4CDC#5B4CDC

#5B4CDC is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.0% C 0.210 H 280.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5B4CDC
RGBrgb(91, 76, 220)
HSLhsl(246, 67%, 58%)
HSVhsv(246, 65%, 86%)
CMYKcmyk(58.6%, 65.5%, 0%, 13.7%)
CIE-LABlab(42.09, 46.07, -71.69)
CIE-LCHlch(42.09, 85.22, 302.73°)
OKLaboklab(52.03% 0.0398 -0.2064)
OKLCHoklch(52.03% 0.21 280.9)
XYZxyz(19.8130, 12.5590, 69.0763)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CDC #CDDC4C
analogous
#4C85DC #5B4CDC #A34CDC
triadic
#5B4CDC #DC5B4C #4CDC5B
tetradic
#5B4CDC #DC4C85 #CDDC4C #4CDCA3
square
#5B4CDC #DC4C85 #CDDC4C #4CDCA3
split-complementary
#5B4CDC #DCA34C #85DC4C
monochromatic
#291C91 #3726C4 #5B4CDC #8A7FE6 #B9B2F0

Accessibility & contrast

On white

5.98
#5B4CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5B4CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CDC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CDC#FFFFFF#000000##FFFFFF
##5B4CDC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E0
Deuteranopia (green-blind)
#005ED9
Tritanopia (blue-blind)
#00718D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4cdc;
/* rgb */ color: rgb(91, 76, 220);
/* oklch */ color: oklch(52.0% 0.210 280.9);
Tailwind
colors: {
  custom: {
    50: '#967fe8',
    500: '#5b4cdc',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cdc;
$custom-light: #967fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cdc",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 246.25,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52025,
    "c": 0.21017,
    "h": 280.9
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#5B4CDC
secondary
#D9DFA5
accent
#EA3ED8
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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