#5945E5#5945E5

#5945E5 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.229 H 280.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5945E5
RGBrgb(89, 69, 229)
HSLhsl(248, 75%, 58%)
HSVhsv(248, 70%, 90%)
CMYKcmyk(61.1%, 69.9%, 0%, 10.2%)
CIE-LABlab(41.27, 52.43, -78.17)
CIE-LCHlch(41.27, 94.12, 303.85°)
OKLaboklab(51.63% 0.0413 -0.2254)
OKLCHoklch(51.63% 0.229 280.4)
XYZxyz(20.3863, 12.0357, 75.3624)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945E5 #D1E545
analogous
#4581E5 #5945E5 #A945E5
triadic
#5945E5 #E55945 #45E559
tetradic
#5945E5 #E54581 #D1E545 #45E5A9
square
#5945E5 #E54581 #D1E545 #45E5A9
split-complementary
#5945E5 #E5A945 #81E545
monochromatic
#26169A #331DD0 #5945E5 #897BED #B9B0F4

Accessibility & contrast

On white

6.16
#5945E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5945E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945E5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945E5#FFFFFF#000000##FFFFFF
##5945E51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EA
Deuteranopia (green-blind)
#005BE2
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5945e5;
/* rgb */ color: rgb(89, 69, 229);
/* oklch */ color: oklch(51.6% 0.229 280.4);
Tailwind
colors: {
  custom: {
    50: '#977bee',
    500: '#5945e5',
    950: '#000000',
  },
}
SCSS
$custom: #5945e5;
$custom-light: #977bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5945e5",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 229
  },
  "hsl": {
    "h": 247.5,
    "s": 75.472,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51632,
    "c": 0.22915,
    "h": 280.4
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#5945E5
secondary
#DBE3A3
accent
#F236DB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5945E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5945E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva