#5945D5#5945D5

#5945D5 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.2% C 0.210 H 282.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5945D5
RGBrgb(89, 69, 213)
HSLhsl(248, 63%, 55%)
HSVhsv(248, 68%, 84%)
CMYKcmyk(58.2%, 67.6%, 0%, 16.5%)
CIE-LABlab(39.89, 47.59, -71.29)
CIE-LCHlch(39.89, 85.72, 303.72°)
OKLaboklab(50.22% 0.0439 -0.2053)
OKLCHoklch(50.22% 0.21 282.1)
XYZxyz(18.2544, 11.1830, 64.1345)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945D5 #C1D545
analogous
#4579D5 #5945D5 #A145D5
triadic
#5945D5 #D55945 #45D559
tetradic
#5945D5 #D54579 #C1D545 #45D5A1
square
#5945D5 #D54579 #C1D545 #45D5A1
split-complementary
#5945D5 #D5A145 #79D545
monochromatic
#2B1D82 #3C29B4 #5945D5 #8677E0 #B2A9EC

Accessibility & contrast

On white

6.49
#5945D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5945D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945D5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945D5#FFFFFF#000000##FFFFFF
##5945D51.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#066B87
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5945d5;
/* rgb */ color: rgb(89, 69, 213);
/* oklch */ color: oklch(50.2% 0.210 282.1);
Tailwind
colors: {
  custom: {
    50: '#947ae3',
    500: '#5945d5',
    950: '#000000',
  },
}
SCSS
$custom: #5945d5;
$custom-light: #947ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#5945d5",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 248.333,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50215,
    "c": 0.2099,
    "h": 282.1
  },
  "luminance": 0.11184
}

Semantic roles & 50–950 ramp

primary
#5945D5
secondary
#D1D99D
accent
#E642CF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5945D5

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

Preview Lab → · Contrast checker → · Palette generator →

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