#5845DF#5845DF

#5845DF is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.222 H 280.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5845DF
RGBrgb(88, 69, 223)
HSLhsl(247, 71%, 57%)
HSVhsv(247, 69%, 87%)
CMYKcmyk(60.5%, 69.1%, 0%, 12.5%)
CIE-LABlab(40.67, 50.48, -75.75)
CIE-LCHlch(40.67, 91.03, 303.68°)
OKLaboklab(51.02% 0.041 -0.2183)
OKLCHoklch(51.02% 0.222 280.6)
XYZxyz(19.4677, 11.6572, 71.0219)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845DF #CCDF45
analogous
#457FDF #5845DF #A545DF
triadic
#5845DF #DF5845 #45DF58
tetradic
#5845DF #DF457F #CCDF45 #45DFA5
square
#5845DF #DF457F #CCDF45 #45DFA5
split-complementary
#5845DF #DFA545 #7FDF45
monochromatic
#281991 #3622C5 #5845DF #8779E8 #B6ADF1

Accessibility & contrast

On white

6.30
#5845DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5845DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845DF
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845DF#FFFFFF#000000##FFFFFF
##5845DF1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005ADC
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5845df;
/* rgb */ color: rgb(88, 69, 223);
/* oklch */ color: oklch(51.0% 0.222 280.6);
Tailwind
colors: {
  custom: {
    50: '#967bea',
    500: '#5845df',
    950: '#000000',
  },
}
SCSS
$custom: #5845df;
$custom-light: #967bea;
$custom-dark: #000000;
JSON
{
  "hex": "#5845df",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 247.403,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51017,
    "c": 0.22216,
    "h": 280.6
  },
  "luminance": 0.11659
}

Semantic roles & 50–950 ramp

primary
#5845DF
secondary
#D7DFA1
accent
#ED3AD7
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5845DF

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

Preview Lab → · Contrast checker → · Palette generator →

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