#5945D7#5945D7

#5945D7 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.4% C 0.212 H 281.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5945D7
RGBrgb(89, 69, 215)
HSLhsl(248, 65%, 56%)
HSVhsv(248, 68%, 84%)
CMYKcmyk(58.6%, 67.9%, 0%, 15.7%)
CIE-LABlab(40.06, 48.19, -72.17)
CIE-LCHlch(40.06, 86.78, 303.74°)
OKLaboklab(50.39% 0.0436 -0.2078)
OKLCHoklch(50.39% 0.212 281.8)
XYZxyz(18.5099, 11.2851, 65.4797)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945D7 #C3D745
analogous
#457AD7 #5945D7 #A245D7
triadic
#5945D7 #D75945 #45D759
tetradic
#5945D7 #D7457A #C3D745 #45D7A2
square
#5945D7 #D7457A #C3D745 #45D7A2
split-complementary
#5945D7 #D7A245 #7AD745
monochromatic
#2B1D85 #3B27B7 #5945D7 #8677E2 #B3AAED

Accessibility & contrast

On white

6.45
#5945D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5945D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945D7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945D7#FFFFFF#000000##FFFFFF
##5945D71.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DB
Deuteranopia (green-blind)
#0059D4
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5945d7;
/* rgb */ color: rgb(89, 69, 215);
/* oklch */ color: oklch(50.4% 0.212 281.8);
Tailwind
colors: {
  custom: {
    50: '#957ae4',
    500: '#5945d7',
    950: '#000000',
  },
}
SCSS
$custom: #5945d7;
$custom-light: #957ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5945d7",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 248.219,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50389,
    "c": 0.21235,
    "h": 281.8
  },
  "luminance": 0.11286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5945D7

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

Preview Lab → · Contrast checker → · Palette generator →

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