#5845D5#5845D5

#5845D5 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.1% C 0.210 H 281.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5845D5
RGBrgb(88, 69, 213)
HSLhsl(248, 63%, 55%)
HSVhsv(248, 68%, 84%)
CMYKcmyk(58.7%, 67.6%, 0%, 16.5%)
CIE-LABlab(39.80, 47.44, -71.43)
CIE-LCHlch(39.80, 85.75, 303.59°)
OKLaboklab(50.14% 0.0425 -0.2057)
OKLCHoklch(50.14% 0.21 281.7)
XYZxyz(18.1591, 11.1338, 64.1300)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845D5 #C2D545
analogous
#457AD5 #5845D5 #A045D5
triadic
#5845D5 #D55845 #45D558
tetradic
#5845D5 #D5457A #C2D545 #45D5A0
square
#5845D5 #D5457A #C2D545 #45D5A0
split-complementary
#5845D5 #D5A045 #7AD545
monochromatic
#2B1D82 #3B29B4 #5845D5 #8577E0 #B2A9EC

Accessibility & contrast

On white

6.51
#5845D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5845D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845D5
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845D5#FFFFFF#000000##FFFFFF
##5845D51.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#006B87
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5845d5;
/* rgb */ color: rgb(88, 69, 213);
/* oklch */ color: oklch(50.1% 0.210 281.7);
Tailwind
colors: {
  custom: {
    50: '#947ae3',
    500: '#5845d5',
    950: '#000000',
  },
}
SCSS
$custom: #5845d5;
$custom-light: #947ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#5845d5",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 247.917,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50135,
    "c": 0.21005,
    "h": 281.7
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#5845D5
secondary
#D1D99D
accent
#E642D0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5845D5

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

Preview Lab → · Contrast checker → · Palette generator →

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