#5945D8#5945D8

#5945D8 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.5% C 0.214 H 281.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5945D8
RGBrgb(89, 69, 216)
HSLhsl(248, 65%, 56%)
HSVhsv(248, 68%, 85%)
CMYKcmyk(58.8%, 68.1%, 0%, 15.3%)
CIE-LABlab(40.14, 48.50, -72.60)
CIE-LCHlch(40.14, 87.31, 303.74°)
OKLaboklab(50.48% 0.0434 -0.2091)
OKLCHoklch(50.48% 0.214 281.7)
XYZxyz(18.6387, 11.3367, 66.1585)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945D8 #C4D845
analogous
#457AD8 #5945D8 #A245D8
triadic
#5945D8 #D85945 #45D859
tetradic
#5945D8 #D8457A #C4D845 #45D8A2
square
#5945D8 #D8457A #C4D845 #45D8A2
split-complementary
#5945D8 #D8A245 #7AD845
monochromatic
#2B1C86 #3B27B9 #5945D8 #8678E3 #B3AAED

Accessibility & contrast

On white

6.43
#5945D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5945D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945D8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945D8#FFFFFF#000000##FFFFFF
##5945D81.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#0059D5
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5945d8;
/* rgb */ color: rgb(89, 69, 216);
/* oklch */ color: oklch(50.5% 0.214 281.7);
Tailwind
colors: {
  custom: {
    50: '#957ae5',
    500: '#5945d8',
    950: '#000000',
  },
}
SCSS
$custom: #5945d8;
$custom-light: #957ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#5945d8",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 248.163,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50476,
    "c": 0.21356,
    "h": 281.7
  },
  "luminance": 0.11338
}

Semantic roles & 50–950 ramp

primary
#5945D8
secondary
#D3DB9E
accent
#E840D1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5945D8

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

Preview Lab → · Contrast checker → · Palette generator →

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