#5B51E7#5B51E7

#5B51E7 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.7% C 0.218 H 279.1°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5B51E7
RGBrgb(91, 81, 231)
HSLhsl(244, 76%, 61%)
HSVhsv(244, 65%, 91%)
CMYKcmyk(60.6%, 64.9%, 0%, 9.4%)
CIE-LABlab(44.06, 46.62, -74.74)
CIE-LCHlch(44.06, 88.08, 301.96°)
OKLaboklab(53.73% 0.0345 -0.2153)
OKLCHoklch(53.73% 0.218 279.1)
XYZxyz(21.6760, 13.8769, 77.1221)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B51E7 #DDE751
analogous
#5192E7 #5B51E7 #A651E7
triadic
#5B51E7 #E75B51 #51E75B
tetradic
#5B51E7 #E75192 #DDE751 #51E7A6
square
#5B51E7 #E75192 #DDE751 #51E7A6
split-complementary
#5B51E7 #E7A651 #92E751
monochromatic
#2117A7 #2B1EDC #5B51E7 #8E87EE #C0BDF6

Accessibility & contrast

On white

5.56
#5B51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5B51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B51E7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B51E7#FFFFFF#000000##FFFFFF
##5B51E71.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0062E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b51e7;
/* rgb */ color: rgb(91, 81, 231);
/* oklch */ color: oklch(53.7% 0.218 279.1);
Tailwind
colors: {
  custom: {
    50: '#9883f0',
    500: '#5b51e7',
    950: '#000000',
  },
}
SCSS
$custom: #5b51e7;
$custom-light: #9883f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b51e7",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 244,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53726,
    "c": 0.21804,
    "h": 279.1
  },
  "luminance": 0.13879
}

Semantic roles & 50–950 ramp

primary
#5B51E7
secondary
#E2E6AE
accent
#D80ECA
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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