#5B46CF#5B46CF

#5B46CF is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.0% C 0.201 H 283.4°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5B46CF
RGBrgb(91, 70, 207)
HSLhsl(249, 59%, 54%)
HSVhsv(249, 66%, 81%)
CMYKcmyk(56%, 66.2%, 0%, 18.8%)
CIE-LABlab(39.76, 45.51, -68.03)
CIE-LCHlch(39.76, 81.85, 303.78°)
OKLaboklab(50.01% 0.0465 -0.1956)
OKLCHoklch(50.01% 0.201 283.4)
XYZxyz(17.7636, 11.1084, 60.2275)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46CF #BACF46
analogous
#4676CF #5B46CF #A046CF
triadic
#5B46CF #CF5B46 #46CF5B
tetradic
#5B46CF #CF4676 #BACF46 #46CFA0
square
#5B46CF #CF4676 #BACF46 #46CFA0
split-complementary
#5B46CF #CFA046 #76CF46
monochromatic
#2E207B #402CAB #5B46CF #8677DC #B1A7E8

Accessibility & contrast

On white

6.52
#5B46CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5B46CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46CF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46CF#FFFFFF#000000##FFFFFF
##5B46CF1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#216984
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b46cf;
/* rgb */ color: rgb(91, 70, 207);
/* oklch */ color: oklch(50.0% 0.201 283.4);
Tailwind
colors: {
  custom: {
    50: '#947bdf',
    500: '#5b46cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b46cf;
$custom-light: #947bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46cf",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 207
  },
  "hsl": {
    "h": 249.197,
    "s": 58.798,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50012,
    "c": 0.20109,
    "h": 283.4
  },
  "luminance": 0.11109
}

Semantic roles & 50–950 ramp

primary
#5B46CF
secondary
#CDD59B
accent
#E246CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B46CF

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

Preview Lab → · Contrast checker → · Palette generator →

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