#5845EC#5845EC

#5845EC is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.2% C 0.238 H 279.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5845EC
RGBrgb(88, 69, 236)
HSLhsl(247, 81%, 60%)
HSVhsv(247, 71%, 93%)
CMYKcmyk(62.7%, 70.8%, 0%, 7.5%)
CIE-LABlab(41.82, 54.41, -81.23)
CIE-LCHlch(41.82, 97.77, 303.82°)
OKLaboklab(52.2% 0.0387 -0.2344)
OKLCHoklch(52.2% 0.238 279.4)
XYZxyz(21.2881, 12.3854, 80.6094)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845EC #D9EC45
analogous
#4586EC #5845EC #AB45EC
triadic
#5845EC #EC5845 #45EC58
tetradic
#5845EC #EC4586 #D9EC45 #45ECAB
square
#5845EC #EC4586 #D9EC45 #45ECAB
split-complementary
#5845EC #ECAB45 #86EC45
monochromatic
#2211A6 #2D17DD #5845EC #8A7DF2 #BCB4F7

Accessibility & contrast

On white

6.04
#5845EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5845EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845EC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845EC#FFFFFF#000000##FFFFFF
##5845EC1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F1
Deuteranopia (green-blind)
#005CE9
Tritanopia (blue-blind)
#007394
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5845ec;
/* rgb */ color: rgb(88, 69, 236);
/* oklch */ color: oklch(52.2% 0.238 279.4);
Tailwind
colors: {
  custom: {
    50: '#987bf3',
    500: '#5845ec',
    950: '#000000',
  },
}
SCSS
$custom: #5845ec;
$custom-light: #987bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5845ec",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 236
  },
  "hsl": {
    "h": 246.826,
    "s": 81.463,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52195,
    "c": 0.23758,
    "h": 279.4
  },
  "luminance": 0.12387
}

Semantic roles & 50–950 ramp

primary
#5845EC
secondary
#DFE7A6
accent
#F830E1
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5845EC

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

Preview Lab → · Contrast checker → · Palette generator →

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