#5851D7#5851D7

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

Color values

HEX#5851D7
RGBrgb(88, 81, 215)
HSLhsl(243, 63%, 58%)
HSVhsv(243, 62%, 84%)
CMYKcmyk(59.1%, 62.3%, 0%, 15.7%)
CIE-LABlab(42.56, 41.12, -68.08)
CIE-LCHlch(42.56, 79.53, 301.13°)
OKLaboklab(52.18% 0.0322 -0.1958)
OKLCHoklch(52.18% 0.198 279.3)
XYZxyz(19.2288, 12.8645, 65.7466)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851D7 #D0D751
analogous
#518DD7 #5851D7 #9B51D7
triadic
#5851D7 #D75851 #51D758
tetradic
#5851D7 #D7518D #D0D751 #51D79B
square
#5851D7 #D7518D #D0D751 #51D79B
split-complementary
#5851D7 #D79B51 #8DD751
monochromatic
#26208D #342CBF #5851D7 #8883E2 #B8B5EE

Accessibility & contrast

On white

5.88
#5851D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5851D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851D7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851D7#FFFFFF#000000##FFFFFF
##5851D71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5851d7;
/* rgb */ color: rgb(88, 81, 215);
/* oklch */ color: oklch(52.2% 0.198 279.3);
Tailwind
colors: {
  custom: {
    50: '#9382e4',
    500: '#5851d7',
    950: '#000000',
  },
}
SCSS
$custom: #5851d7;
$custom-light: #9382e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5851d7",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 243.134,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52183,
    "c": 0.19847,
    "h": 279.3
  },
  "luminance": 0.12866
}

Semantic roles & 50–950 ramp

primary
#5851D7
secondary
#DADDA7
accent
#E642DD
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5851D7

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

Preview Lab → · Contrast checker → · Palette generator →

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