#5954E9#5954E9

#5954E9 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.2% C 0.217 H 277.8°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5954E9
RGBrgb(89, 84, 233)
HSLhsl(242, 77%, 62%)
HSVhsv(242, 64%, 91%)
CMYKcmyk(61.8%, 63.9%, 0%, 8.6%)
CIE-LABlab(44.73, 45.22, -74.78)
CIE-LCHlch(44.73, 87.39, 301.16°)
OKLaboklab(54.23% 0.0294 -0.2155)
OKLCHoklch(54.23% 0.217 277.8)
XYZxyz(21.9934, 14.3460, 78.6851)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5954E9 #E4E954
analogous
#549AE9 #5954E9 #A354E9
triadic
#5954E9 #E95954 #54E959
tetradic
#5954E9 #E9549A #E4E954 #54E9A3
square
#5954E9 #E9549A #E4E954 #54E9A3
split-complementary
#5954E9 #E9A354 #9AE954
monochromatic
#1B16AC #241EE2 #5954E9 #8E8AF0 #C2C0F7

Accessibility & contrast

On white

5.43
#5954E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5954E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5954E9
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5954E9#FFFFFF#000000##FFFFFF
##5954E91.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EE
Deuteranopia (green-blind)
#0064E6
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5954e9;
/* rgb */ color: rgb(89, 84, 233);
/* oklch */ color: oklch(54.2% 0.217 277.8);
Tailwind
colors: {
  custom: {
    50: '#9785f1',
    500: '#5954e9',
    950: '#000000',
  },
}
SCSS
$custom: #5954e9;
$custom-light: #9785f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5954e9",
  "rgb": {
    "r": 89,
    "g": 84,
    "b": 233
  },
  "hsl": {
    "h": 242.013,
    "s": 77.202,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54226,
    "c": 0.21747,
    "h": 277.8
  },
  "luminance": 0.14348
}

Semantic roles & 50–950 ramp

primary
#5954E9
secondary
#E6E8B1
accent
#D90CD3
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5954E9

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

Preview Lab → · Contrast checker → · Palette generator →

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