#5845D8#5845D8

#5845D8 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.4% C 0.214 H 281.4°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5845D8
RGBrgb(88, 69, 216)
HSLhsl(248, 65%, 56%)
HSVhsv(248, 68%, 85%)
CMYKcmyk(59.3%, 68.1%, 0%, 15.3%)
CIE-LABlab(40.06, 48.35, -72.74)
CIE-LCHlch(40.06, 87.34, 303.61°)
OKLaboklab(50.4% 0.0421 -0.2095)
OKLCHoklch(50.4% 0.214 281.4)
XYZxyz(18.5434, 11.2875, 66.1540)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845D8 #C5D845
analogous
#457BD8 #5845D8 #A145D8
triadic
#5845D8 #D85845 #45D858
tetradic
#5845D8 #D8457B #C5D845 #45D8A1
square
#5845D8 #D8457B #C5D845 #45D8A1
split-complementary
#5845D8 #D8A145 #7BD845
monochromatic
#2A1C86 #3A27B9 #5845D8 #8578E3 #B3AAED

Accessibility & contrast

On white

6.45
#5845D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5845D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845D8
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845D8#FFFFFF#000000##FFFFFF
##5845D81.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#0059D5
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5845d8;
/* rgb */ color: rgb(88, 69, 216);
/* oklch */ color: oklch(50.4% 0.214 281.4);
Tailwind
colors: {
  custom: {
    50: '#947ae5',
    500: '#5845d8',
    950: '#000000',
  },
}
SCSS
$custom: #5845d8;
$custom-light: #947ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#5845d8",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 247.755,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50398,
    "c": 0.21372,
    "h": 281.4
  },
  "luminance": 0.11289
}

Semantic roles & 50–950 ramp

primary
#5845D8
secondary
#D3DB9E
accent
#E840D2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5845D8

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

Preview Lab → · Contrast checker → · Palette generator →

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