#5B4BEC#5B4BEC

#5B4BEC is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.3% C 0.231 H 279.6°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5B4BEC
RGBrgb(91, 75, 236)
HSLhsl(246, 81%, 61%)
HSVhsv(246, 68%, 93%)
CMYKcmyk(61.4%, 68.2%, 0%, 7.5%)
CIE-LABlab(43.23, 51.54, -78.92)
CIE-LCHlch(43.23, 94.26, 303.15°)
OKLaboklab(53.26% 0.0384 -0.2276)
OKLCHoklch(53.26% 0.231 279.6)
XYZxyz(21.9660, 13.3108, 80.7523)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BEC #DCEC4B
analogous
#4B8BEC #5B4BEC #AB4BEC
triadic
#5B4BEC #EC5B4B #4BEC5B
tetradic
#5B4BEC #EC4B8B #DCEC4B #4BECAB
square
#5B4BEC #EC4B8B #DCEC4B #4BECAB
split-complementary
#5B4BEC #ECAB4B #8BEC4B
monochromatic
#2112AB #2C18E2 #5B4BEC #8D82F2 #C0BAF8

Accessibility & contrast

On white

5.73
#5B4BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5B4BEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BEC
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BEC#FFFFFF#000000##FFFFFF
##5B4BEC1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b4bec;
/* rgb */ color: rgb(91, 75, 236);
/* oklch */ color: oklch(53.3% 0.231 279.6);
Tailwind
colors: {
  custom: {
    50: '#997ff3',
    500: '#5b4bec',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bec;
$custom-light: #997ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bec",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 236
  },
  "hsl": {
    "h": 245.963,
    "s": 80.905,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53257,
    "c": 0.23078,
    "h": 279.6
  },
  "luminance": 0.13312
}

Semantic roles & 50–950 ramp

primary
#5B4BEC
secondary
#E2E8AB
accent
#DD08C8
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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