#5845BC#5845BC

#5845BC is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.0% C 0.179 H 284.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5845BC
RGBrgb(88, 69, 188)
HSLhsl(250, 47%, 50%)
HSVhsv(250, 63%, 74%)
CMYKcmyk(53.2%, 63.3%, 0%, 26.3%)
CIE-LABlab(37.77, 39.78, -60.23)
CIE-LCHlch(37.77, 72.18, 303.44°)
OKLaboklab(48.03% 0.0455 -0.1728)
OKLCHoklch(48.03% 0.179 284.7)
XYZxyz(15.2270, 9.9610, 48.6875)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845BC #A9BC45
analogous
#456DBC #5845BC #9445BC
triadic
#5845BC #BC5845 #45BC58
tetradic
#5845BC #BC456D #A9BC45 #45BC94
square
#5845BC #BC456D #A9BC45 #45BC94
split-complementary
#5845BC #BC9445 #6DBC45
monochromatic
#2E2463 #433490 #5845BC #8072CC #A99FDC

Accessibility & contrast

On white

7.02
#5845BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5845BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5845BC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845BC#FFFFFF#000000##FFFFFF
##5845BC1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#2F627A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5845bc;
/* rgb */ color: rgb(88, 69, 188);
/* oklch */ color: oklch(48.0% 0.179 284.7);
Tailwind
colors: {
  custom: {
    50: '#907ad1',
    500: '#5845bc',
    950: '#000000',
  },
}
SCSS
$custom: #5845bc;
$custom-light: #907ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5845bc",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 249.58,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48034,
    "c": 0.17869,
    "h": 284.7
  },
  "luminance": 0.09962
}

Semantic roles & 50–950 ramp

primary
#5845BC
secondary
#C0C994
accent
#D751C1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5845BC

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

Preview Lab → · Contrast checker → · Palette generator →

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