#5E54CD#5E54CD

#5E54CD is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.4% C 0.181 H 281.9°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5E54CD
RGBrgb(94, 84, 205)
HSLhsl(245, 55%, 57%)
HSVhsv(245, 59%, 80%)
CMYKcmyk(54.1%, 59%, 0%, 19.6%)
CIE-LABlab(42.95, 37.23, -61.67)
CIE-LCHlch(42.95, 72.04, 301.11°)
OKLaboklab(52.35% 0.0372 -0.1768)
OKLCHoklch(52.35% 0.181 281.9)
XYZxyz(18.8025, 13.1270, 59.2888)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E54CD #C3CD54
analogous
#5487CD #5E54CD #9B54CD
triadic
#5E54CD #CD5E54 #54CD5E
tetradic
#5E54CD #CD5487 #C3CD54 #54CD9B
square
#5E54CD #CD5487 #C3CD54 #54CD9B
split-complementary
#5E54CD #CD9B54 #87CD54
monochromatic
#2D2681 #3E34B0 #5E54CD #8B83DB #B7B3E9

Accessibility & contrast

On white

5.79
#5E54CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5E54CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E54CD
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E54CD#FFFFFF#000000##FFFFFF
##5E54CD1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#2B7188
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5e54cd;
/* rgb */ color: rgb(94, 84, 205);
/* oklch */ color: oklch(52.4% 0.181 281.9);
Tailwind
colors: {
  custom: {
    50: '#9584dd',
    500: '#5e54cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e54cd;
$custom-light: #9584dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e54cd",
  "rgb": {
    "r": 94,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 244.959,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52353,
    "c": 0.1807,
    "h": 281.9
  },
  "luminance": 0.13128
}

Semantic roles & 50–950 ramp

primary
#5E54CD
secondary
#D3D7A6
accent
#DE4AD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5E54CD

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

Preview Lab → · Contrast checker → · Palette generator →

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