#5951EA#5951EA

#5951EA is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.8% C 0.222 H 278.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5951EA
RGBrgb(89, 81, 234)
HSLhsl(243, 78%, 62%)
HSVhsv(243, 65%, 92%)
CMYKcmyk(62%, 65.4%, 0%, 8.2%)
CIE-LABlab(44.16, 47.27, -76.27)
CIE-LCHlch(44.16, 89.73, 301.79°)
OKLaboklab(53.84% 0.0317 -0.2198)
OKLCHoklch(53.84% 0.222 278.2)
XYZxyz(21.9088, 13.9475, 79.3636)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951EA #E2EA51
analogous
#5196EA #5951EA #A651EA
triadic
#5951EA #EA5951 #51EA59
tetradic
#5951EA #EA5196 #E2EA51 #51EAA6
square
#5951EA #EA5196 #E2EA51 #51EAA6
split-complementary
#5951EA #EAA651 #96EA51
monochromatic
#1D15AC #261BE2 #5951EA #8D88F1 #C1BEF7

Accessibility & contrast

On white

5.54
#5951EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5951EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951EA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951EA#FFFFFF#000000##FFFFFF
##5951EA1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0062E7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5951ea;
/* rgb */ color: rgb(89, 81, 234);
/* oklch */ color: oklch(53.8% 0.222 278.2);
Tailwind
colors: {
  custom: {
    50: '#9783f2',
    500: '#5951ea',
    950: '#000000',
  },
}
SCSS
$custom: #5951ea;
$custom-light: #9783f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5951ea",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 243.137,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.53839,
    "c": 0.22212,
    "h": 278.2
  },
  "luminance": 0.13949
}

Semantic roles & 50–950 ramp

primary
#5951EA
secondary
#E5E8AF
accent
#DB0BD0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5951EA

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

Preview Lab → · Contrast checker → · Palette generator →

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