#5954EA#5954EA

#5954EA is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.3% C 0.219 H 277.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5954EA
RGBrgb(89, 84, 234)
HSLhsl(242, 78%, 62%)
HSVhsv(242, 64%, 92%)
CMYKcmyk(62%, 64.1%, 0%, 8.2%)
CIE-LABlab(44.81, 45.53, -75.21)
CIE-LCHlch(44.81, 87.92, 301.19°)
OKLaboklab(54.31% 0.0293 -0.2167)
OKLCHoklch(54.31% 0.219 277.7)
XYZxyz(22.1366, 14.4033, 79.4395)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954EA #E5EA54
analogous
#549AEA #5954EA #A454EA
triadic
#5954EA #EA5954 #54EA59
tetradic
#5954EA #EA549A #E5EA54 #54EAA4
square
#5954EA #EA549A #E5EA54 #54EAA4
split-complementary
#5954EA #EAA454 #9AEA54
monochromatic
#1A15AE #241DE3 #5954EA #8E8BF1 #C3C1F7

Accessibility & contrast

On white

5.41
#5954EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5954EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954EA
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954EA#FFFFFF#000000##FFFFFF
##5954EA1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#0064E7
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5954ea;
/* rgb */ color: rgb(89, 84, 234);
/* oklch */ color: oklch(54.3% 0.219 277.7);
Tailwind
colors: {
  custom: {
    50: '#9785f2',
    500: '#5954ea',
    950: '#000000',
  },
}
SCSS
$custom: #5954ea;
$custom-light: #9785f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5954ea",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 242,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54309,
    "c": 0.21872,
    "h": 277.7
  },
  "luminance": 0.14405
}

Semantic roles & 50–950 ramp

primary
#5954EA
secondary
#E6E8B2
accent
#DA0BD3
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5954EA

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

Preview Lab → · Contrast checker → · Palette generator →

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