#5945CF#5945CF

#5945CF is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.7% C 0.203 H 282.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5945CF
RGBrgb(89, 69, 207)
HSLhsl(249, 59%, 54%)
HSVhsv(249, 67%, 81%)
CMYKcmyk(57%, 66.7%, 0%, 18.8%)
CIE-LABlab(39.38, 45.76, -68.66)
CIE-LCHlch(39.38, 82.51, 303.68°)
OKLaboklab(49.7% 0.0447 -0.1975)
OKLCHoklch(49.7% 0.203 282.8)
XYZxyz(17.5070, 10.8840, 60.1977)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945CF #BBCF45
analogous
#4576CF #5945CF #9E45CF
triadic
#5945CF #CF5945 #45CF59
tetradic
#5945CF #CF4576 #BBCF45 #45CF9E
square
#5945CF #CF4576 #BBCF45 #45CF9E
split-complementary
#5945CF #CF9E45 #76CF45
monochromatic
#2D207A #3E2CAB #5945CF #8476DC #B0A6E8

Accessibility & contrast

On white

6.61
#5945CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5945CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945CF
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945CF#FFFFFF#000000##FFFFFF
##5945CF1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#186884
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5945cf;
/* rgb */ color: rgb(89, 69, 207);
/* oklch */ color: oklch(49.7% 0.203 282.8);
Tailwind
colors: {
  custom: {
    50: '#937adf',
    500: '#5945cf',
    950: '#000000',
  },
}
SCSS
$custom: #5945cf;
$custom-light: #937adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5945cf",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 248.696,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49698,
    "c": 0.20254,
    "h": 282.8
  },
  "luminance": 0.10885
}

Semantic roles & 50–950 ramp

primary
#5945CF
secondary
#CDD59B
accent
#E246CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5945CF

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

Preview Lab → · Contrast checker → · Palette generator →

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