#5951D7#5951D7

#5951D7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.3% C 0.198 H 279.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5951D7
RGBrgb(89, 81, 215)
HSLhsl(244, 63%, 58%)
HSVhsv(244, 62%, 84%)
CMYKcmyk(58.6%, 62.3%, 0%, 15.7%)
CIE-LABlab(42.63, 41.28, -67.96)
CIE-LCHlch(42.63, 79.51, 301.28°)
OKLaboklab(52.26% 0.0334 -0.1955)
OKLCHoklch(52.26% 0.198 279.7)
XYZxyz(19.3241, 12.9136, 65.7511)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5951D7 #CFD751
analogous
#518CD7 #5951D7 #9C51D7
triadic
#5951D7 #D75951 #51D759
tetradic
#5951D7 #D7518C #CFD751 #51D79C
square
#5951D7 #D7518C #CFD751 #51D79C
split-complementary
#5951D7 #D79C51 #8CD751
monochromatic
#27208D #352CBF #5951D7 #8883E2 #B8B5EE

Accessibility & contrast

On white

5.86
#5951D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5951D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5951D7
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5951D7#FFFFFF#000000##FFFFFF
##5951D71.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00728C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5951d7;
/* rgb */ color: rgb(89, 81, 215);
/* oklch */ color: oklch(52.3% 0.198 279.7);
Tailwind
colors: {
  custom: {
    50: '#9482e4',
    500: '#5951d7',
    950: '#000000',
  },
}
SCSS
$custom: #5951d7;
$custom-light: #9482e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5951d7",
  "rgb": {
    "r": 89,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 243.582,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52256,
    "c": 0.19828,
    "h": 279.7
  },
  "luminance": 0.12915
}

Semantic roles & 50–950 ramp

primary
#5951D7
secondary
#D9DDA7
accent
#E642DC
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5951D7

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

Preview Lab → · Contrast checker → · Palette generator →

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