#5845CE#5845CE

#5845CE is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.5% C 0.201 H 282.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5845CE
RGBrgb(88, 69, 206)
HSLhsl(248, 58%, 54%)
HSVhsv(248, 67%, 81%)
CMYKcmyk(57.3%, 66.5%, 0%, 19.2%)
CIE-LABlab(39.22, 45.30, -68.36)
CIE-LCHlch(39.22, 82.00, 303.53°)
OKLaboklab(49.53% 0.0435 -0.1967)
OKLCHoklch(49.53% 0.201 282.5)
XYZxyz(17.2898, 10.7861, 59.5514)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845CE #BBCE45
analogous
#4577CE #5845CE #9D45CE
triadic
#5845CE #CE5845 #45CE58
tetradic
#5845CE #CE4577 #BBCE45 #45CE9D
square
#5845CE #CE4577 #BBCE45 #45CE9D
split-complementary
#5845CE #CE9D45 #77CE45
monochromatic
#2C2079 #3E2DA9 #5845CE #8375DB #AFA6E8

Accessibility & contrast

On white

6.65
#5845CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5845CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845CE
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845CE#FFFFFF#000000##FFFFFF
##5845CE1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#156884
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5845ce;
/* rgb */ color: rgb(88, 69, 206);
/* oklch */ color: oklch(49.5% 0.201 282.5);
Tailwind
colors: {
  custom: {
    50: '#937ade',
    500: '#5845ce',
    950: '#000000',
  },
}
SCSS
$custom: #5845ce;
$custom-light: #937ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5845ce",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 248.321,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49531,
    "c": 0.20144,
    "h": 282.5
  },
  "luminance": 0.10787
}

Semantic roles & 50–950 ramp

primary
#5845CE
secondary
#CDD59A
accent
#E246CC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5845CE

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

Preview Lab → · Contrast checker → · Palette generator →

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