#5845CC#5845CC

#5845CC is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.4% C 0.199 H 282.7°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5845CC
RGBrgb(88, 69, 204)
HSLhsl(248, 57%, 54%)
HSVhsv(248, 66%, 80%)
CMYKcmyk(56.9%, 66.2%, 0%, 20%)
CIE-LABlab(39.05, 44.68, -67.47)
CIE-LCHlch(39.05, 80.92, 303.52°)
OKLaboklab(49.36% 0.0438 -0.1941)
OKLCHoklch(49.36% 0.199 282.7)
XYZxyz(17.0483, 10.6895, 58.2800)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845CC #B9CC45
analogous
#4575CC #5845CC #9B45CC
triadic
#5845CC #CC5845 #45CC58
tetradic
#5845CC #CC4575 #B9CC45 #45CC9B
square
#5845CC #CC4575 #B9CC45 #45CC9B
split-complementary
#5845CC #CC9B45 #75CC45
monochromatic
#2C2076 #3F2EA6 #5845CC #8375D9 #AEA5E6

Accessibility & contrast

On white

6.69
#5845CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5845CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845CC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845CC#FFFFFF#000000##FFFFFF
##5845CC1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#196783
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5845cc;
/* rgb */ color: rgb(88, 69, 204);
/* oklch */ color: oklch(49.4% 0.199 282.7);
Tailwind
colors: {
  custom: {
    50: '#927add',
    500: '#5845cc',
    950: '#000000',
  },
}
SCSS
$custom: #5845cc;
$custom-light: #927add;
$custom-dark: #000000;
JSON
{
  "hex": "#5845cc",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 248.444,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49361,
    "c": 0.19895,
    "h": 282.7
  },
  "luminance": 0.10691
}

Semantic roles & 50–950 ramp

primary
#5845CC
secondary
#CBD399
accent
#E048CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5845CC

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

Preview Lab → · Contrast checker → · Palette generator →

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