#5945D6#5945D6

#5945D6 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.3% C 0.211 H 281.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5945D6
RGBrgb(89, 69, 214)
HSLhsl(248, 64%, 55%)
HSVhsv(248, 68%, 84%)
CMYKcmyk(58.4%, 67.8%, 0%, 16.1%)
CIE-LABlab(39.97, 47.89, -71.73)
CIE-LCHlch(39.97, 86.25, 303.73°)
OKLaboklab(50.3% 0.0437 -0.2065)
OKLCHoklch(50.3% 0.211 281.9)
XYZxyz(18.3818, 11.2339, 64.8050)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945D6 #C2D645
analogous
#4579D6 #5945D6 #A245D6
triadic
#5945D6 #D65945 #45D659
tetradic
#5945D6 #D64579 #C2D645 #45D6A2
square
#5945D6 #D64579 #C2D645 #45D6A2
split-complementary
#5945D6 #D6A245 #79D645
monochromatic
#2B1D84 #3C28B6 #5945D6 #8677E1 #B3A9EC

Accessibility & contrast

On white

6.47
#5945D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5945D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945D6
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945D6#FFFFFF#000000##FFFFFF
##5945D61.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#0059D3
Tritanopia (blue-blind)
#026B88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5945d6;
/* rgb */ color: rgb(89, 69, 214);
/* oklch */ color: oklch(50.3% 0.211 281.9);
Tailwind
colors: {
  custom: {
    50: '#957ae4',
    500: '#5945d6',
    950: '#000000',
  },
}
SCSS
$custom: #5945d6;
$custom-light: #957ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5945d6",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 248.276,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50302,
    "c": 0.21112,
    "h": 281.9
  },
  "luminance": 0.11235
}

Semantic roles & 50–950 ramp

primary
#5945D6
secondary
#D1DA9D
accent
#E741D0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5945D6

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

Preview Lab → · Contrast checker → · Palette generator →

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