#5845E5#5845E5

#5845E5 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.229 H 280.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5845E5
RGBrgb(88, 69, 229)
HSLhsl(247, 75%, 58%)
HSVhsv(247, 70%, 90%)
CMYKcmyk(61.6%, 69.9%, 0%, 10.2%)
CIE-LABlab(41.19, 52.30, -78.30)
CIE-LCHlch(41.19, 94.16, 303.74°)
OKLaboklab(51.56% 0.04 -0.2258)
OKLCHoklch(51.56% 0.229 280)
XYZxyz(20.2910, 11.9866, 75.3579)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845E5 #D2E545
analogous
#4582E5 #5845E5 #A845E5
triadic
#5845E5 #E55845 #45E558
tetradic
#5845E5 #E54582 #D2E545 #45E5A8
square
#5845E5 #E54582 #D2E545 #45E5A8
split-complementary
#5845E5 #E5A845 #82E545
monochromatic
#25169A #321DD0 #5845E5 #887BED #B8B0F4

Accessibility & contrast

On white

6.18
#5845E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5845E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845E5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845E5#FFFFFF#000000##FFFFFF
##5845E51.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EA
Deuteranopia (green-blind)
#005BE2
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5845e5;
/* rgb */ color: rgb(88, 69, 229);
/* oklch */ color: oklch(51.6% 0.229 280.0);
Tailwind
colors: {
  custom: {
    50: '#977bee',
    500: '#5845e5',
    950: '#000000',
  },
}
SCSS
$custom: #5845e5;
$custom-light: #977bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5845e5",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 229
  },
  "hsl": {
    "h": 247.125,
    "s": 75.472,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51557,
    "c": 0.22932,
    "h": 280
  },
  "luminance": 0.11988
}

Semantic roles & 50–950 ramp

primary
#5845E5
secondary
#DBE3A3
accent
#F236DC
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5845E5

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

Preview Lab → · Contrast checker → · Palette generator →

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