#5845D3#5845D3

#5845D3 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.0% C 0.208 H 281.9°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5845D3
RGBrgb(88, 69, 211)
HSLhsl(248, 62%, 55%)
HSVhsv(248, 67%, 83%)
CMYKcmyk(58.3%, 67.3%, 0%, 17.3%)
CIE-LABlab(39.64, 46.83, -70.56)
CIE-LCHlch(39.64, 84.68, 303.57°)
OKLaboklab(49.96% 0.0428 -0.2031)
OKLCHoklch(49.96% 0.208 281.9)
XYZxyz(17.9068, 11.0329, 62.8013)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845D3 #C0D345
analogous
#4579D3 #5845D3 #9F45D3
triadic
#5845D3 #D35845 #45D358
tetradic
#5845D3 #D34579 #C0D345 #45D39F
square
#5845D3 #D34579 #C0D345 #45D39F
split-complementary
#5845D3 #D39F45 #79D345
monochromatic
#2B1E7F #3C2AB1 #5845D3 #8476DF #B1A8EA

Accessibility & contrast

On white

6.55
#5845D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5845D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845D3
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845D3#FFFFFF#000000##FFFFFF
##5845D31.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#0058D0
Tritanopia (blue-blind)
#056A86
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5845d3;
/* rgb */ color: rgb(88, 69, 211);
/* oklch */ color: oklch(50.0% 0.208 281.9);
Tailwind
colors: {
  custom: {
    50: '#947ae2',
    500: '#5845d3',
    950: '#000000',
  },
}
SCSS
$custom: #5845d3;
$custom-light: #947ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5845d3",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 248.028,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49962,
    "c": 0.20761,
    "h": 281.9
  },
  "luminance": 0.11034
}

Semantic roles & 50–950 ramp

primary
#5845D3
secondary
#D0D89C
accent
#E543CF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5845D3

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

Preview Lab → · Contrast checker → · Palette generator →

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