#5845C8#5845C8

#5845C8 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 49.0% C 0.194 H 283.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5845C8
RGBrgb(88, 69, 200)
HSLhsl(249, 54%, 53%)
HSVhsv(249, 66%, 78%)
CMYKcmyk(56%, 65.5%, 0%, 21.6%)
CIE-LABlab(38.73, 43.46, -65.68)
CIE-LCHlch(38.73, 78.76, 303.49°)
OKLaboklab(49.02% 0.0443 -0.1888)
OKLCHoklch(49.02% 0.194 283.2)
XYZxyz(16.5747, 10.5001, 55.7857)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845C8 #B5C845
analogous
#4574C8 #5845C8 #9945C8
triadic
#5845C8 #C85845 #45C858
tetradic
#5845C8 #C84574 #B5C845 #45C899
square
#5845C8 #C84574 #B5C845 #45C899
split-complementary
#5845C8 #C89945 #74C845
monochromatic
#2D2171 #402FA0 #5845C8 #8274D6 #ADA3E4

Accessibility & contrast

On white

6.77
#5845C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5845C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845C8
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845C8#FFFFFF#000000##FFFFFF
##5845C81.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#206680
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5845c8;
/* rgb */ color: rgb(88, 69, 200);
/* oklch */ color: oklch(49.0% 0.194 283.2);
Tailwind
colors: {
  custom: {
    50: '#927ada',
    500: '#5845c8',
    950: '#000000',
  },
}
SCSS
$custom: #5845c8;
$custom-light: #927ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5845c8",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 248.702,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49023,
    "c": 0.19395,
    "h": 283.2
  },
  "luminance": 0.10501
}

Semantic roles & 50–950 ramp

primary
#5845C8
secondary
#C9D198
accent
#DE4AC8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5845C8

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

Preview Lab → · Contrast checker → · Palette generator →

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