#5946E7#5946E7

#5946E7 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.0% C 0.230 H 280.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5946E7
RGBrgb(89, 70, 231)
HSLhsl(247, 77%, 59%)
HSVhsv(247, 70%, 91%)
CMYKcmyk(61.5%, 69.7%, 0%, 9.4%)
CIE-LABlab(41.65, 52.50, -78.69)
CIE-LCHlch(41.65, 94.59, 303.71°)
OKLaboklab(51.95% 0.0402 -0.2269)
OKLCHoklch(51.95% 0.23 280.1)
XYZxyz(20.7292, 12.2721, 76.8622)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946E7 #D4E746
analogous
#4684E7 #5946E7 #AA46E7
triadic
#5946E7 #E75946 #46E759
tetradic
#5946E7 #E74684 #D4E746 #46E7AA
square
#5946E7 #E74684 #D4E746 #46E7AA
split-complementary
#5946E7 #E7AA46 #84E746
monochromatic
#25159E #311CD4 #5946E7 #8A7CEE #BAB2F5

Accessibility & contrast

On white

6.08
#5946E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5946E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5946E7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946E7#FFFFFF#000000##FFFFFF
##5946E71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#007292
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5946e7;
/* rgb */ color: rgb(89, 70, 231);
/* oklch */ color: oklch(52.0% 0.230 280.1);
Tailwind
colors: {
  custom: {
    50: '#977cf0',
    500: '#5946e7',
    950: '#000000',
  },
}
SCSS
$custom: #5946e7;
$custom-light: #977cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5946e7",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 231
  },
  "hsl": {
    "h": 247.081,
    "s": 77.033,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.23048,
    "h": 280.1
  },
  "luminance": 0.12274
}

Semantic roles & 50–950 ramp

primary
#5946E7
secondary
#DDE4A5
accent
#F434DD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5946E7

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

Preview Lab → · Contrast checker → · Palette generator →

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