#5954ED#5954ED

#5954ED is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.6% C 0.222 H 277.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5954ED
RGBrgb(89, 84, 237)
HSLhsl(242, 81%, 63%)
HSVhsv(242, 65%, 93%)
CMYKcmyk(62.4%, 64.6%, 0%, 7.1%)
CIE-LABlab(45.05, 46.49, -76.50)
CIE-LCHlch(45.05, 89.52, 301.28°)
OKLaboklab(54.56% 0.0291 -0.2205)
OKLCHoklch(54.56% 0.222 277.5)
XYZxyz(22.5713, 14.5771, 81.7286)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954ED #E8ED54
analogous
#549BED #5954ED #A654ED
triadic
#5954ED #ED5954 #54ED59
tetradic
#5954ED #ED549B #E8ED54 #54EDA6
square
#5954ED #ED549B #E8ED54 #54EDA6
split-complementary
#5954ED #EDA654 #9BED54
monochromatic
#1813B4 #231DE7 #5954ED #8F8BF3 #C5C3F9

Accessibility & contrast

On white

5.36
#5954ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5954ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954ED
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954ED#FFFFFF#000000##FFFFFF
##5954ED1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F2
Deuteranopia (green-blind)
#0064EA
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5954ed;
/* rgb */ color: rgb(89, 84, 237);
/* oklch */ color: oklch(54.6% 0.222 277.5);
Tailwind
colors: {
  custom: {
    50: '#9785f4',
    500: '#5954ed',
    950: '#000000',
  },
}
SCSS
$custom: #5954ed;
$custom-light: #9785f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5954ed",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 241.961,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54562,
    "c": 0.22244,
    "h": 277.5
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#5954ED
secondary
#E8EAB3
accent
#DD08D6
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5954ED

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

Preview Lab → · Contrast checker → · Palette generator →

#5954ED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva