#5E54CC#5E54CC

#5E54CC is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.3% C 0.179 H 282.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5E54CC
RGBrgb(94, 84, 204)
HSLhsl(245, 54%, 56%)
HSVhsv(245, 59%, 80%)
CMYKcmyk(53.9%, 58.8%, 0%, 20%)
CIE-LABlab(42.88, 36.91, -61.21)
CIE-LCHlch(42.88, 71.48, 301.09°)
OKLaboklab(52.28% 0.0373 -0.1755)
OKLCHoklch(52.28% 0.179 282)
XYZxyz(18.6821, 13.0788, 58.6551)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E54CC #C2CC54
analogous
#5486CC #5E54CC #9A54CC
triadic
#5E54CC #CC5E54 #54CC5E
tetradic
#5E54CC #CC5486 #C2CC54 #54CC9A
square
#5E54CC #CC5486 #C2CC54 #54CC9A
split-complementary
#5E54CC #CC9A54 #86CC54
monochromatic
#2E2680 #3E34AF #5E54CC #8A83DA #B7B2E8

Accessibility & contrast

On white

5.81
#5E54CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5E54CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E54CC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E54CC#FFFFFF#000000##FFFFFF
##5E54CC1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#2D7088
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5e54cc;
/* rgb */ color: rgb(94, 84, 204);
/* oklch */ color: oklch(52.3% 0.179 282.0);
Tailwind
colors: {
  custom: {
    50: '#9584dc',
    500: '#5e54cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e54cc;
$custom-light: #9584dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e54cc",
  "rgb": {
    "r": 94,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 245,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52277,
    "c": 0.17938,
    "h": 282
  },
  "luminance": 0.1308
}

Semantic roles & 50–950 ramp

primary
#5E54CC
secondary
#D2D7A5
accent
#DD4AD1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5E54CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5E54CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva