#5945C2#5945C2

#5945C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.6% C 0.186 H 284.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5945C2
RGBrgb(89, 69, 194)
HSLhsl(250, 51%, 52%)
HSVhsv(250, 64%, 76%)
CMYKcmyk(54.1%, 64.4%, 0%, 23.9%)
CIE-LABlab(38.33, 41.80, -62.83)
CIE-LCHlch(38.33, 75.46, 303.63°)
OKLaboklab(48.61% 0.0463 -0.1804)
OKLCHoklch(48.61% 0.186 284.4)
XYZxyz(15.9826, 10.2742, 52.1694)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945C2 #AEC245
analogous
#4570C2 #5945C2 #9845C2
triadic
#5945C2 #C25945 #45C259
tetradic
#5945C2 #C24570 #AEC245 #45C298
square
#5945C2 #C24570 #AEC245 #45C298
split-complementary
#5945C2 #C29845 #70C245
monochromatic
#2E236A #423298 #5945C2 #8273D1 #ABA1E0

Accessibility & contrast

On white

6.87
#5945C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5945C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945C2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945C2#FFFFFF#000000##FFFFFF
##5945C21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#2B647D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5945c2;
/* rgb */ color: rgb(89, 69, 194);
/* oklch */ color: oklch(48.6% 0.186 284.4);
Tailwind
colors: {
  custom: {
    50: '#917ad5',
    500: '#5945c2',
    950: '#000000',
  },
}
SCSS
$custom: #5945c2;
$custom-light: #917ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5945c2",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 249.6,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48608,
    "c": 0.18625,
    "h": 284.4
  },
  "luminance": 0.10275
}

Semantic roles & 50–950 ramp

primary
#5945C2
secondary
#C4CD96
accent
#DA4EC4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5945C2

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

Preview Lab → · Contrast checker → · Palette generator →

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