#5946EC#5946EC

#5946EC is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.4% C 0.236 H 279.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5946EC
RGBrgb(89, 70, 236)
HSLhsl(247, 81%, 60%)
HSVhsv(247, 70%, 93%)
CMYKcmyk(62.3%, 70.3%, 0%, 7.5%)
CIE-LABlab(42.09, 54.00, -80.79)
CIE-LCHlch(42.09, 97.18, 303.76°)
OKLaboklab(52.41% 0.0394 -0.2331)
OKLCHoklch(52.41% 0.236 279.6)
XYZxyz(21.4455, 12.5586, 80.6346)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946EC #D9EC46
analogous
#4686EC #5946EC #AC46EC
triadic
#5946EC #EC5946 #46EC59
tetradic
#5946EC #EC4686 #D9EC46 #46ECAC
square
#5946EC #EC4686 #D9EC46 #46ECAC
split-complementary
#5946EC #ECAC46 #86EC46
monochromatic
#2211A7 #2E17DE #5946EC #8B7DF2 #BDB5F7

Accessibility & contrast

On white

5.98
#5946EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5946EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5946EC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946EC#FFFFFF#000000##FFFFFF
##5946EC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF1
Deuteranopia (green-blind)
#005DE9
Tritanopia (blue-blind)
#007394
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5946ec;
/* rgb */ color: rgb(89, 70, 236);
/* oklch */ color: oklch(52.4% 0.236 279.6);
Tailwind
colors: {
  custom: {
    50: '#987cf3',
    500: '#5946ec',
    950: '#000000',
  },
}
SCSS
$custom: #5946ec;
$custom-light: #987cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5946ec",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 236
  },
  "hsl": {
    "h": 246.867,
    "s": 81.373,
    "l": 60
  },
  "oklch": {
    "l": 0.52405,
    "c": 0.23638,
    "h": 279.6
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#5946EC
secondary
#E0E7A7
accent
#F830E1
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5946EC

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

Preview Lab → · Contrast checker → · Palette generator →

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