#5946EF#5946EF

#5946EF is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.7% C 0.240 H 279.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5946EF
RGBrgb(89, 70, 239)
HSLhsl(247, 84%, 61%)
HSVhsv(247, 71%, 94%)
CMYKcmyk(62.8%, 70.7%, 0%, 6.3%)
CIE-LABlab(42.36, 54.91, -82.04)
CIE-LCHlch(42.36, 98.72, 303.79°)
OKLaboklab(52.68% 0.0388 -0.2367)
OKLCHoklch(52.68% 0.24 279.3)
XYZxyz(21.8850, 12.7344, 82.9493)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946EF #DCEF46
analogous
#4687EF #5946EF #AE46EF
triadic
#5946EF #EF5946 #46EF59
tetradic
#5946EF #EF4687 #DCEF46 #46EFAE
square
#5946EF #EF4687 #DCEF46 #46EFAE
split-complementary
#5946EF #EFAE46 #87EF46
monochromatic
#200FAC #2B14E4 #5946EF #8C7EF4 #BEB7F9

Accessibility & contrast

On white

5.92
#5946EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5946EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5946EF
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946EF#FFFFFF#000000##FFFFFF
##5946EF1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF4
Deuteranopia (green-blind)
#005DEC
Tritanopia (blue-blind)
#007596
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5946ef;
/* rgb */ color: rgb(89, 70, 239);
/* oklch */ color: oklch(52.7% 0.240 279.3);
Tailwind
colors: {
  custom: {
    50: '#997cf6',
    500: '#5946ef',
    950: '#000000',
  },
}
SCSS
$custom: #5946ef;
$custom-light: #997cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5946ef",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 239
  },
  "hsl": {
    "h": 246.746,
    "s": 84.08,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52679,
    "c": 0.23989,
    "h": 279.3
  },
  "luminance": 0.12736
}

Semantic roles & 50–950 ramp

primary
#5946EF
secondary
#E1E9A8
accent
#E105C8
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5946EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5946EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva