#5945BB#5945BB

#5945BB is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.0% C 0.177 H 285.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5945BB
RGBrgb(89, 69, 187)
HSLhsl(250, 46%, 50%)
HSVhsv(250, 63%, 73%)
CMYKcmyk(52.4%, 63.1%, 0%, 26.7%)
CIE-LABlab(37.78, 39.66, -59.62)
CIE-LCHlch(37.78, 71.61, 303.63°)
OKLaboklab(48.04% 0.0469 -0.171)
OKLCHoklch(48.04% 0.177 285.3)
XYZxyz(15.2149, 9.9671, 48.1262)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945BB #A7BB45
analogous
#456CBB #5945BB #9445BB
triadic
#5945BB #BB5945 #45BB59
tetradic
#5945BB #BB456C #A7BB45 #45BB94
square
#5945BB #BB456C #A7BB45 #45BB94
split-complementary
#5945BB #BB9445 #6CBB45
monochromatic
#2E2462 #43348F #5945BB #8172CB #A99FDC

Accessibility & contrast

On white

7.01
#5945BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5945BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5945BB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945BB#FFFFFF#000000##FFFFFF
##5945BB1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#326279
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5945bb;
/* rgb */ color: rgb(89, 69, 187);
/* oklch */ color: oklch(48.0% 0.177 285.3);
Tailwind
colors: {
  custom: {
    50: '#907ad0',
    500: '#5945bb',
    950: '#000000',
  },
}
SCSS
$custom: #5945bb;
$custom-light: #907ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5945bb",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 250.169,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48039,
    "c": 0.17731,
    "h": 285.3
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

primary
#5945BB
secondary
#BFC894
accent
#D652C0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5945BB

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

Preview Lab → · Contrast checker → · Palette generator →

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