#5945C9#5945C9

#5945C9 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.2% C 0.195 H 283.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5945C9
RGBrgb(89, 69, 201)
HSLhsl(249, 55%, 53%)
HSVhsv(249, 66%, 79%)
CMYKcmyk(55.7%, 65.7%, 0%, 21.2%)
CIE-LABlab(38.89, 43.93, -65.99)
CIE-LCHlch(38.89, 79.27, 303.65°)
OKLaboklab(49.19% 0.0455 -0.1897)
OKLCHoklch(49.19% 0.195 283.5)
XYZxyz(16.7873, 10.5961, 56.4077)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945C9 #B5C945
analogous
#4573C9 #5945C9 #9B45C9
triadic
#5945C9 #C95945 #45C959
tetradic
#5945C9 #C94573 #B5C945 #45C99B
square
#5945C9 #C94573 #B5C945 #45C99B
split-complementary
#5945C9 #C99B45 #73C945
monochromatic
#2E2172 #402FA2 #5945C9 #8374D7 #AEA4E5

Accessibility & contrast

On white

6.73
#5945C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5945C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945C9
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945C9#FFFFFF#000000##FFFFFF
##5945C91.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#0057C6
Tritanopia (blue-blind)
#236681
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5945c9;
/* rgb */ color: rgb(89, 69, 201);
/* oklch */ color: oklch(49.2% 0.195 283.5);
Tailwind
colors: {
  custom: {
    50: '#927ada',
    500: '#5945c9',
    950: '#000000',
  },
}
SCSS
$custom: #5945c9;
$custom-light: #927ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5945c9",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 249.091,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.19507,
    "h": 283.5
  },
  "luminance": 0.10597
}

Semantic roles & 50–950 ramp

primary
#5945C9
secondary
#C9D198
accent
#DE49C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5945C9

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

Preview Lab → · Contrast checker → · Palette generator →

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