#5845C2#5845C2

#5845C2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.5% C 0.186 H 283.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5845C2
RGBrgb(88, 69, 194)
HSLhsl(249, 51%, 52%)
HSVhsv(249, 64%, 76%)
CMYKcmyk(54.6%, 64.4%, 0%, 23.9%)
CIE-LABlab(38.24, 41.62, -62.97)
CIE-LCHlch(38.24, 75.48, 303.46°)
OKLaboklab(48.52% 0.0449 -0.1809)
OKLCHoklch(48.52% 0.186 283.9)
XYZxyz(15.8873, 10.2251, 52.1650)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845C2 #AFC245
analogous
#4571C2 #5845C2 #9745C2
triadic
#5845C2 #C25845 #45C258
tetradic
#5845C2 #C24571 #AFC245 #45C297
square
#5845C2 #C24571 #AFC245 #45C297
split-complementary
#5845C2 #C29745 #71C245
monochromatic
#2E236A #413298 #5845C2 #8173D1 #ABA1E0

Accessibility & contrast

On white

6.90
#5845C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5845C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845C2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845C2#FFFFFF#000000##FFFFFF
##5845C21.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#28647D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5845c2;
/* rgb */ color: rgb(88, 69, 194);
/* oklch */ color: oklch(48.5% 0.186 283.9);
Tailwind
colors: {
  custom: {
    50: '#917ad5',
    500: '#5845c2',
    950: '#000000',
  },
}
SCSS
$custom: #5845c2;
$custom-light: #917ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5845c2",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 249.12,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.18637,
    "h": 283.9
  },
  "luminance": 0.10226
}

Semantic roles & 50–950 ramp

primary
#5845C2
secondary
#C5CD96
accent
#DA4EC5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5845C2

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

Preview Lab → · Contrast checker → · Palette generator →

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