#5945CE#5945CE

#5945CE is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.6% C 0.201 H 282.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5945CE
RGBrgb(89, 69, 206)
HSLhsl(249, 58%, 54%)
HSVhsv(249, 67%, 81%)
CMYKcmyk(56.8%, 66.5%, 0%, 19.2%)
CIE-LABlab(39.30, 45.46, -68.22)
CIE-LCHlch(39.30, 81.97, 303.68°)
OKLaboklab(49.61% 0.0448 -0.1962)
OKLCHoklch(49.61% 0.201 282.9)
XYZxyz(17.3851, 10.8352, 59.5559)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945CE #BACE45
analogous
#4576CE #5945CE #9E45CE
triadic
#5945CE #CE5945 #45CE59
tetradic
#5945CE #CE4576 #BACE45 #45CE9E
square
#5945CE #CE4576 #BACE45 #45CE9E
split-complementary
#5945CE #CE9E45 #76CE45
monochromatic
#2D2079 #3F2DA9 #5945CE #8475DB #AFA6E8

Accessibility & contrast

On white

6.63
#5945CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5945CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945CE
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945CE#FFFFFF#000000##FFFFFF
##5945CE1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#1A6884
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5945ce;
/* rgb */ color: rgb(89, 69, 206);
/* oklch */ color: oklch(49.6% 0.201 282.9);
Tailwind
colors: {
  custom: {
    50: '#937ade',
    500: '#5945ce',
    950: '#000000',
  },
}
SCSS
$custom: #5945ce;
$custom-light: #937ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5945ce",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 248.759,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49612,
    "c": 0.2013,
    "h": 282.9
  },
  "luminance": 0.10836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5945CE

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

Preview Lab → · Contrast checker → · Palette generator →

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