#5B5BFC#5B5BFC

#5B5BFC is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 57.1% C 0.233 H 276.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5B5BFC
RGBrgb(91, 91, 252)
HSLhsl(240, 96%, 67%)
HSVhsv(240, 64%, 99%)
CMYKcmyk(63.9%, 63.9%, 0%, 1.2%)
CIE-LABlab(47.92, 47.47, -80.20)
CIE-LCHlch(47.92, 93.19, 300.62°)
OKLaboklab(57.06% 0.0248 -0.2313)
OKLCHoklch(57.06% 0.233 276.1)
XYZxyz(25.6204, 16.7324, 93.9561)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BFC #FCFC5B
analogous
#5BACFC #5B5BFC #AC5BFC
triadic
#5B5BFC #FC5B5B #5BFC5B
tetradic
#5B5BFC #FC5BAC #FCFC5B #5BFCAC
square
#5B5BFC #FC5BAC #FCFC5B #5BFCAC
split-complementary
#5B5BFC #FCAC5B #ACFC5B
monochromatic
#0404D9 #1F1FFB #5B5BFC #9797FD #D3D3FE

Accessibility & contrast

On white

4.83
#5B5BFC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#5B5BFC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BFC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BFC#FFFFFF#000000##FFFFFF
##5B5BFC1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#006BF9
Tritanopia (blue-blind)
#0085A3
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b5bfc;
/* rgb */ color: rgb(91, 91, 252);
/* oklch */ color: oklch(57.1% 0.233 276.1);
Tailwind
colors: {
  custom: {
    50: '#9a8aff',
    500: '#5b5bfc',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bfc;
$custom-light: #9a8aff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bfc",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 252
  },
  "hsl": {
    "h": 240,
    "s": 96.407,
    "l": 67.255
  },
  "oklch": {
    "l": 0.57062,
    "c": 0.23261,
    "h": 276.1
  },
  "luminance": 0.16735
}

Semantic roles & 50–950 ramp

primary
#5B5BFC
secondary
#F3F3C0
accent
#E600E5
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #5B5BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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