#5951E5#5951E5

#5951E5 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.4% C 0.216 H 278.6°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5951E5
RGBrgb(89, 81, 229)
HSLhsl(243, 74%, 61%)
HSVhsv(243, 65%, 90%)
CMYKcmyk(61.1%, 64.6%, 0%, 10.2%)
CIE-LABlab(43.75, 45.70, -74.11)
CIE-LCHlch(43.75, 87.07, 301.66°)
OKLaboklab(53.42% 0.0322 -0.2135)
OKLCHoklch(53.42% 0.216 278.6)
XYZxyz(21.2006, 13.6642, 75.6338)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951E5 #DDE551
analogous
#5193E5 #5951E5 #A351E5
triadic
#5951E5 #E55951 #51E559
tetradic
#5951E5 #E55193 #DDE551 #51E5A3
square
#5951E5 #E55193 #DDE551 #51E5A3
split-complementary
#5951E5 #E5A351 #93E551
monochromatic
#2018A3 #2A20D8 #5951E5 #8C86ED #BFBBF5

Accessibility & contrast

On white

5.63
#5951E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5951E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951E5
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951E5#FFFFFF#000000##FFFFFF
##5951E51.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5951e5;
/* rgb */ color: rgb(89, 81, 229);
/* oklch */ color: oklch(53.4% 0.216 278.6);
Tailwind
colors: {
  custom: {
    50: '#9683ee',
    500: '#5951e5',
    950: '#000000',
  },
}
SCSS
$custom: #5951e5;
$custom-light: #9683ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5951e5",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 243.243,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53415,
    "c": 0.21593,
    "h": 278.6
  },
  "luminance": 0.13666
}

Semantic roles & 50–950 ramp

primary
#5951E5
secondary
#E2E5AD
accent
#D60FCB
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5951E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5951E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva