#5945E8#5945E8

#5945E8 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.9% C 0.233 H 280.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5945E8
RGBrgb(89, 69, 232)
HSLhsl(247, 78%, 59%)
HSVhsv(247, 70%, 91%)
CMYKcmyk(61.6%, 70.3%, 0%, 9%)
CIE-LABlab(41.54, 53.34, -79.43)
CIE-LCHlch(41.54, 95.68, 303.88°)
OKLaboklab(51.9% 0.0408 -0.2291)
OKLCHoklch(51.9% 0.233 280.1)
XYZxyz(20.8088, 12.2047, 77.5875)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945E8 #D4E845
analogous
#4583E8 #5945E8 #AB45E8
triadic
#5945E8 #E85945 #45E859
tetradic
#5945E8 #E84583 #D4E845 #45E8AB
square
#5945E8 #E84583 #D4E845 #45E8AB
split-complementary
#5945E8 #E8AB45 #83E845
monochromatic
#25149F #311AD5 #5945E8 #8A7BEF #BAB2F5

Accessibility & contrast

On white

6.10
#5945E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5945E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945E8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945E8#FFFFFF#000000##FFFFFF
##5945E81.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068ED
Deuteranopia (green-blind)
#005CE5
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5945e8;
/* rgb */ color: rgb(89, 69, 232);
/* oklch */ color: oklch(51.9% 0.233 280.1);
Tailwind
colors: {
  custom: {
    50: '#987bf1',
    500: '#5945e8',
    950: '#000000',
  },
}
SCSS
$custom: #5945e8;
$custom-light: #987bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5945e8",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 247.362,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51904,
    "c": 0.2327,
    "h": 280.1
  },
  "luminance": 0.12206
}

Semantic roles & 50–950 ramp

primary
#5945E8
secondary
#DDE4A4
accent
#F433DD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5945E8

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

Preview Lab → · Contrast checker → · Palette generator →

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