#5D54C8#5D54C8

#5D54C8 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.174 H 282.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5D54C8
RGBrgb(93, 84, 200)
HSLhsl(245, 51%, 56%)
HSVhsv(245, 58%, 78%)
CMYKcmyk(53.5%, 58%, 0%, 21.6%)
CIE-LABlab(42.52, 35.47, -59.50)
CIE-LCHlch(42.52, 69.27, 300.80°)
OKLaboklab(51.9% 0.0361 -0.1705)
OKLCHoklch(51.9% 0.174 282)
XYZxyz(18.1066, 12.8369, 56.1560)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D54C8 #BFC854
analogous
#5485C8 #5D54C8 #9754C8
triadic
#5D54C8 #C85D54 #54C85D
tetradic
#5D54C8 #C85485 #BFC854 #54C897
square
#5D54C8 #C85485 #BFC854 #54C897
split-complementary
#5D54C8 #C89754 #85C854
monochromatic
#2E277A #3F36A9 #5D54C8 #8982D7 #B5B1E6

Accessibility & contrast

On white

5.89
#5D54C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5D54C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D54C8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D54C8#FFFFFF#000000##FFFFFF
##5D54C81.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#2E6F86
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5d54c8;
/* rgb */ color: rgb(93, 84, 200);
/* oklch */ color: oklch(51.9% 0.174 282.0);
Tailwind
colors: {
  custom: {
    50: '#9384d9',
    500: '#5d54c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d54c8;
$custom-light: #9384d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d54c8",
  "rgb": {
    "r": 93,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 244.655,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51897,
    "c": 0.17424,
    "h": 282
  },
  "luminance": 0.12838
}

Semantic roles & 50–950 ramp

primary
#5D54C8
secondary
#D0D4A4
accent
#DB4DD0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5D54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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