#5854CC#5854CC

#5854CC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.8% C 0.180 H 279.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5854CC
RGBrgb(88, 84, 204)
HSLhsl(242, 54%, 56%)
HSVhsv(242, 59%, 80%)
CMYKcmyk(56.9%, 58.8%, 0%, 20%)
CIE-LABlab(42.42, 35.80, -61.98)
CIE-LCHlch(42.42, 71.58, 300.01°)
OKLaboklab(51.82% 0.0299 -0.1779)
OKLCHoklch(51.82% 0.18 279.5)
XYZxyz(18.0905, 12.7738, 58.6273)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5854CC #C8CC54
analogous
#548CCC #5854CC #9454CC
triadic
#5854CC #CC5854 #54CC58
tetradic
#5854CC #CC548C #C8CC54 #54CC94
square
#5854CC #CC548C #C8CC54 #54CC94
split-complementary
#5854CC #CC9454 #8CCC54
monochromatic
#292680 #3834AF #5854CC #8683DA #B4B2E8

Accessibility & contrast

On white

5.91
#5854CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5854CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5854CC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5854CC#FFFFFF#000000##FFFFFF
##5854CC1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#167188
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5854cc;
/* rgb */ color: rgb(88, 84, 204);
/* oklch */ color: oklch(51.8% 0.180 279.5);
Tailwind
colors: {
  custom: {
    50: '#9184dc',
    500: '#5854cc',
    950: '#000000',
  },
}
SCSS
$custom: #5854cc;
$custom-light: #9184dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5854cc",
  "rgb": {
    "r": 88,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 242,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51821,
    "c": 0.1804,
    "h": 279.5
  },
  "luminance": 0.12775
}

Semantic roles & 50–950 ramp

primary
#5854CC
secondary
#D5D7A5
accent
#DD4AD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5854CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5854CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva