#5845CA#5845CA

#5845CA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.2% C 0.196 H 282.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5845CA
RGBrgb(88, 69, 202)
HSLhsl(249, 56%, 53%)
HSVhsv(249, 66%, 79%)
CMYKcmyk(56.4%, 65.8%, 0%, 20.8%)
CIE-LABlab(38.89, 44.07, -66.58)
CIE-LCHlch(38.89, 79.84, 303.50°)
OKLaboklab(49.19% 0.044 -0.1915)
OKLCHoklch(49.19% 0.196 282.9)
XYZxyz(16.8100, 10.5942, 57.0248)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845CA #B7CA45
analogous
#4575CA #5845CA #9A45CA
triadic
#5845CA #CA5845 #45CA58
tetradic
#5845CA #CA4575 #B7CA45 #45CA9A
square
#5845CA #CA4575 #B7CA45 #45CA9A
split-complementary
#5845CA #CA9A45 #75CA45
monochromatic
#2D2174 #3F2FA3 #5845CA #8375D8 #AEA4E5

Accessibility & contrast

On white

6.73
#5845CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5845CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5845CA
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845CA#FFFFFF#000000##FFFFFF
##5845CA1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#1D6781
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5845ca;
/* rgb */ color: rgb(88, 69, 202);
/* oklch */ color: oklch(49.2% 0.196 282.9);
Tailwind
colors: {
  custom: {
    50: '#927adb',
    500: '#5845ca',
    950: '#000000',
  },
}
SCSS
$custom: #5845ca;
$custom-light: #927adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5845ca",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 248.571,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49191,
    "c": 0.19646,
    "h": 282.9
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#5845CA
secondary
#CAD299
accent
#DF49CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5845CA

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

Preview Lab → · Contrast checker → · Palette generator →

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