#5B4CEB#5B4CEB

#5B4CEB is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.3% C 0.228 H 279.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5B4CEB
RGBrgb(91, 76, 235)
HSLhsl(246, 80%, 61%)
HSVhsv(246, 68%, 92%)
CMYKcmyk(61.3%, 67.7%, 0%, 7.8%)
CIE-LABlab(43.34, 50.69, -78.16)
CIE-LCHlch(43.34, 93.16, 302.96°)
OKLaboklab(53.32% 0.0378 -0.2253)
OKLCHoklch(53.32% 0.228 279.5)
XYZxyz(21.8894, 13.3895, 80.0121)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CEB #DCEB4C
analogous
#4C8CEB #5B4CEB #AA4CEB
triadic
#5B4CEB #EB5B4C #4CEB5B
tetradic
#5B4CEB #EB4C8C #DCEB4C #4CEBAA
square
#5B4CEB #EB4C8C #DCEB4C #4CEBAA
split-complementary
#5B4CEB #EBAA4C #8CEB4C
monochromatic
#2113AA #2C19E1 #5B4CEB #8D83F1 #C0BAF7

Accessibility & contrast

On white

5.71
#5B4CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5B4CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CEB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CEB#FFFFFF#000000##FFFFFF
##5B4CEB1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF0
Deuteranopia (green-blind)
#0060E8
Tritanopia (blue-blind)
#007696
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b4ceb;
/* rgb */ color: rgb(91, 76, 235);
/* oklch */ color: oklch(53.3% 0.228 279.5);
Tailwind
colors: {
  custom: {
    50: '#9980f3',
    500: '#5b4ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ceb;
$custom-light: #9980f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ceb",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 245.66,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53315,
    "c": 0.22849,
    "h": 279.5
  },
  "luminance": 0.13391
}

Semantic roles & 50–950 ramp

primary
#5B4CEB
secondary
#E2E7AB
accent
#DC09C8
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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