#5845DC#5845DC

#5845DC is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.8% C 0.219 H 280.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5845DC
RGBrgb(88, 69, 220)
HSLhsl(248, 68%, 57%)
HSVhsv(248, 69%, 86%)
CMYKcmyk(60%, 68.6%, 0%, 13.7%)
CIE-LABlab(40.41, 49.57, -74.46)
CIE-LCHlch(40.41, 89.45, 303.65°)
OKLaboklab(50.75% 0.0415 -0.2146)
OKLCHoklch(50.75% 0.219 280.9)
XYZxyz(19.0668, 11.4969, 68.9106)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845DC #C9DC45
analogous
#457EDC #5845DC #A445DC
triadic
#5845DC #DC5845 #45DC58
tetradic
#5845DC #DC457E #C9DC45 #45DCA4
square
#5845DC #DC457E #C9DC45 #45DCA4
split-complementary
#5845DC #DCA445 #7EDC45
monochromatic
#291A8C #3824C0 #5845DC #8679E6 #B4ACEF

Accessibility & contrast

On white

6.36
#5845DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5845DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845DC
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845DC#FFFFFF#000000##FFFFFF
##5845DC1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5845dc;
/* rgb */ color: rgb(88, 69, 220);
/* oklch */ color: oklch(50.8% 0.219 280.9);
Tailwind
colors: {
  custom: {
    50: '#957ae8',
    500: '#5845dc',
    950: '#000000',
  },
}
SCSS
$custom: #5845dc;
$custom-light: #957ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5845dc",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 247.55,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50751,
    "c": 0.21856,
    "h": 280.9
  },
  "luminance": 0.11498
}

Semantic roles & 50–950 ramp

primary
#5845DC
secondary
#D6DDA0
accent
#EB3DD5
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5845DC

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

Preview Lab → · Contrast checker → · Palette generator →

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