#5845CB#5845CB

#5845CB is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.3% C 0.198 H 282.8°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5845CB
RGBrgb(88, 69, 203)
HSLhsl(249, 56%, 53%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(56.7%, 66%, 0%, 20.4%)
CIE-LABlab(38.97, 44.38, -67.02)
CIE-LCHlch(38.97, 80.38, 303.51°)
OKLaboklab(49.28% 0.0439 -0.1928)
OKLCHoklch(49.28% 0.198 282.8)
XYZxyz(16.9288, 10.6417, 57.6503)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845CB #B8CB45
analogous
#4575CB #5845CB #9B45CB
triadic
#5845CB #CB5845 #45CB58
tetradic
#5845CB #CB4575 #B8CB45 #45CB9B
square
#5845CB #CB4575 #B8CB45 #45CB9B
split-complementary
#5845CB #CB9B45 #75CB45
monochromatic
#2D2175 #3F2EA5 #5845CB #8375D8 #AEA5E6

Accessibility & contrast

On white

6.71
#5845CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5845CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845CB
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845CB#FFFFFF#000000##FFFFFF
##5845CB1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#1B6782
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5845cb;
/* rgb */ color: rgb(88, 69, 203);
/* oklch */ color: oklch(49.3% 0.198 282.8);
Tailwind
colors: {
  custom: {
    50: '#927adc',
    500: '#5845cb',
    950: '#000000',
  },
}
SCSS
$custom: #5845cb;
$custom-light: #927adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5845cb",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 248.507,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49276,
    "c": 0.19771,
    "h": 282.8
  },
  "luminance": 0.10643
}

Semantic roles & 50–950 ramp

primary
#5845CB
secondary
#CBD399
accent
#E048CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5845CB

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

Preview Lab → · Contrast checker → · Palette generator →

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