#5945D3#5945D3

#5945D3 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.0% C 0.207 H 282.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5945D3
RGBrgb(89, 69, 211)
HSLhsl(248, 62%, 55%)
HSVhsv(248, 67%, 83%)
CMYKcmyk(57.8%, 67.3%, 0%, 17.3%)
CIE-LABlab(39.72, 46.98, -70.42)
CIE-LCHlch(39.72, 84.65, 303.71°)
OKLaboklab(50.04% 0.0442 -0.2027)
OKLCHoklch(50.04% 0.207 282.3)
XYZxyz(18.0022, 11.0821, 62.8058)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945D3 #BFD345
analogous
#4578D3 #5945D3 #A045D3
triadic
#5945D3 #D35945 #45D359
tetradic
#5945D3 #D34578 #BFD345 #45D3A0
square
#5945D3 #D34578 #BFD345 #45D3A0
split-complementary
#5945D3 #D3A045 #78D345
monochromatic
#2C1E7F #3D2AB1 #5945D3 #8576DF #B1A8EA

Accessibility & contrast

On white

6.53
#5945D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5945D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945D3
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945D3#FFFFFF#000000##FFFFFF
##5945D31.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#0059D0
Tritanopia (blue-blind)
#0E6A86
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5945d3;
/* rgb */ color: rgb(89, 69, 211);
/* oklch */ color: oklch(50.0% 0.207 282.3);
Tailwind
colors: {
  custom: {
    50: '#947ae2',
    500: '#5945d3',
    950: '#000000',
  },
}
SCSS
$custom: #5945d3;
$custom-light: #947ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5945d3",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 248.451,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50041,
    "c": 0.20746,
    "h": 282.3
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#5945D3
secondary
#CFD89C
accent
#E543CE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5945D3

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

Preview Lab → · Contrast checker → · Palette generator →

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