#5954EC#5954EC

#5954EC is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.5% C 0.221 H 277.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5954EC
RGBrgb(89, 84, 236)
HSLhsl(242, 80%, 63%)
HSVhsv(242, 64%, 93%)
CMYKcmyk(62.3%, 64.4%, 0%, 7.5%)
CIE-LABlab(44.97, 46.17, -76.07)
CIE-LCHlch(44.97, 88.99, 301.25°)
OKLaboklab(54.48% 0.0292 -0.2193)
OKLCHoklch(54.48% 0.221 277.6)
XYZxyz(22.4256, 14.5188, 80.9613)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954EC #E7EC54
analogous
#549BEC #5954EC #A554EC
triadic
#5954EC #EC5954 #54EC59
tetradic
#5954EC #EC549B #E7EC54 #54ECA5
square
#5954EC #EC549B #E7EC54 #54ECA5
split-complementary
#5954EC #ECA554 #9BEC54
monochromatic
#1914B2 #241DE6 #5954EC #8E8BF2 #C4C2F8

Accessibility & contrast

On white

5.38
#5954EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5954EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954EC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954EC#FFFFFF#000000##FFFFFF
##5954EC1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#0064E9
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5954ec;
/* rgb */ color: rgb(89, 84, 236);
/* oklch */ color: oklch(54.5% 0.221 277.6);
Tailwind
colors: {
  custom: {
    50: '#9785f3',
    500: '#5954ec',
    950: '#000000',
  },
}
SCSS
$custom: #5954ec;
$custom-light: #9785f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5954ec",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 241.974,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.54478,
    "c": 0.2212,
    "h": 277.6
  },
  "luminance": 0.14521
}

Semantic roles & 50–950 ramp

primary
#5954EC
secondary
#E8E9B2
accent
#DC09D5
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5954EC

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

Preview Lab → · Contrast checker → · Palette generator →

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