#5B4CDA#5B4CDA

#5B4CDA is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.9% C 0.208 H 281.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5B4CDA
RGBrgb(91, 76, 218)
HSLhsl(246, 66%, 58%)
HSVhsv(246, 65%, 85%)
CMYKcmyk(58.3%, 65.1%, 0%, 14.5%)
CIE-LABlab(41.93, 45.46, -70.82)
CIE-LCHlch(41.93, 84.15, 302.70°)
OKLaboklab(51.86% 0.04 -0.2038)
OKLCHoklch(51.86% 0.208 281.1)
XYZxyz(19.5497, 12.4536, 67.6897)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CDA #CBDA4C
analogous
#4C84DA #5B4CDA #A24CDA
triadic
#5B4CDA #DA5B4C #4CDA5B
tetradic
#5B4CDA #DA4C84 #CBDA4C #4CDAA2
square
#5B4CDA #DA4C84 #CBDA4C #4CDAA2
split-complementary
#5B4CDA #DAA24C #84DA4C
monochromatic
#291D8E #3828C1 #5B4CDA #897FE4 #B8B1EF

Accessibility & contrast

On white

6.02
#5B4CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5B4CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CDA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CDA#FFFFFF#000000##FFFFFF
##5B4CDA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DE
Deuteranopia (green-blind)
#005ED7
Tritanopia (blue-blind)
#02708C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4cda;
/* rgb */ color: rgb(91, 76, 218);
/* oklch */ color: oklch(51.9% 0.208 281.1);
Tailwind
colors: {
  custom: {
    50: '#967fe7',
    500: '#5b4cda',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cda;
$custom-light: #967fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cda",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 218
  },
  "hsl": {
    "h": 246.338,
    "s": 65.741,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51856,
    "c": 0.20769,
    "h": 281.1
  },
  "luminance": 0.12455
}

Semantic roles & 50–950 ramp

primary
#5B4CDA
secondary
#D7DDA4
accent
#E93FD7
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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