#5845C4#5845C4

#5845C4 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.7% C 0.189 H 283.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5845C4
RGBrgb(88, 69, 196)
HSLhsl(249, 52%, 52%)
HSVhsv(249, 65%, 77%)
CMYKcmyk(55.1%, 64.8%, 0%, 23.1%)
CIE-LABlab(38.40, 42.23, -63.88)
CIE-LCHlch(38.40, 76.58, 303.47°)
OKLaboklab(48.69% 0.0447 -0.1835)
OKLCHoklch(48.69% 0.189 283.7)
XYZxyz(16.1134, 10.3155, 53.3559)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845C4 #B1C445
analogous
#4572C4 #5845C4 #9745C4
triadic
#5845C4 #C45845 #45C458
tetradic
#5845C4 #C44572 #B1C445 #45C497
square
#5845C4 #C44572 #B1C445 #45C497
split-complementary
#5845C4 #C49745 #72C445
monochromatic
#2D226C #41319B #5845C4 #8273D3 #ABA2E1

Accessibility & contrast

On white

6.86
#5845C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5845C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845C4
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845C4#FFFFFF#000000##FFFFFF
##5845C41.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#26657E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5845c4;
/* rgb */ color: rgb(88, 69, 196);
/* oklch */ color: oklch(48.7% 0.189 283.7);
Tailwind
colors: {
  custom: {
    50: '#917ad7',
    500: '#5845c4',
    950: '#000000',
  },
}
SCSS
$custom: #5845c4;
$custom-light: #917ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#5845c4",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 196
  },
  "hsl": {
    "h": 248.976,
    "s": 51.837,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48689,
    "c": 0.18891,
    "h": 283.7
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#5845C4
secondary
#C6CE97
accent
#DB4DC6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5845C4

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

Preview Lab → · Contrast checker → · Palette generator →

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