#5845D9#5845D9

#5845D9 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.5% C 0.215 H 281.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5845D9
RGBrgb(88, 69, 217)
HSLhsl(248, 66%, 56%)
HSVhsv(248, 68%, 85%)
CMYKcmyk(59.4%, 68.2%, 0%, 14.9%)
CIE-LABlab(40.15, 48.66, -73.17)
CIE-LCHlch(40.15, 87.87, 303.62°)
OKLaboklab(50.49% 0.0419 -0.2108)
OKLCHoklch(50.49% 0.215 281.3)
XYZxyz(18.6731, 11.3394, 66.8369)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845D9 #C6D945
analogous
#457CD9 #5845D9 #A245D9
triadic
#5845D9 #D95845 #45D958
tetradic
#5845D9 #D9457C #C6D945 #45D9A2
square
#5845D9 #D9457C #C6D945 #45D9A2
split-complementary
#5845D9 #D9A245 #7CD945
monochromatic
#2A1C88 #3926BB #5845D9 #8678E3 #B3ABEE

Accessibility & contrast

On white

6.43
#5845D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5845D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845D9
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845D9#FFFFFF#000000##FFFFFF
##5845D91.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#0059D6
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5845d9;
/* rgb */ color: rgb(88, 69, 217);
/* oklch */ color: oklch(50.5% 0.215 281.3);
Tailwind
colors: {
  custom: {
    50: '#957ae6',
    500: '#5845d9',
    950: '#000000',
  },
}
SCSS
$custom: #5845d9;
$custom-light: #957ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5845d9",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 247.703,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50486,
    "c": 0.21493,
    "h": 281.3
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#5845D9
secondary
#D4DB9E
accent
#E93FD3
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5845D9

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

Preview Lab → · Contrast checker → · Palette generator →

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