#5845D6#5845D6

#5845D6 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.2% C 0.211 H 281.6°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5845D6
RGBrgb(88, 69, 214)
HSLhsl(248, 64%, 55%)
HSVhsv(248, 68%, 84%)
CMYKcmyk(58.9%, 67.8%, 0%, 16.1%)
CIE-LABlab(39.89, 47.74, -71.87)
CIE-LCHlch(39.89, 86.28, 303.60°)
OKLaboklab(50.22% 0.0424 -0.207)
OKLCHoklch(50.22% 0.211 281.6)
XYZxyz(18.2864, 11.1847, 64.8005)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845D6 #C3D645
analogous
#457AD6 #5845D6 #A045D6
triadic
#5845D6 #D65845 #45D658
tetradic
#5845D6 #D6457A #C3D645 #45D6A0
square
#5845D6 #D6457A #C3D645 #45D6A0
split-complementary
#5845D6 #D6A045 #7AD645
monochromatic
#2A1D84 #3B28B6 #5845D6 #8577E1 #B2A9EC

Accessibility & contrast

On white

6.49
#5845D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5845D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845D6
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845D6#FFFFFF#000000##FFFFFF
##5845D61.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#0059D3
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5845d6;
/* rgb */ color: rgb(88, 69, 214);
/* oklch */ color: oklch(50.2% 0.211 281.6);
Tailwind
colors: {
  custom: {
    50: '#947ae4',
    500: '#5845d6',
    950: '#000000',
  },
}
SCSS
$custom: #5845d6;
$custom-light: #947ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5845d6",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 247.862,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50223,
    "c": 0.21128,
    "h": 281.6
  },
  "luminance": 0.11186
}

Semantic roles & 50–950 ramp

primary
#5845D6
secondary
#D2DA9D
accent
#E741D1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5845D6

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

Preview Lab → · Contrast checker → · Palette generator →

#5845D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva