#5945CD#5945CD

#5945CD is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.5% C 0.200 H 283.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5945CD
RGBrgb(89, 69, 205)
HSLhsl(249, 58%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(56.6%, 66.3%, 0%, 19.6%)
CIE-LABlab(39.22, 45.15, -67.77)
CIE-LCHlch(39.22, 81.43, 303.67°)
OKLaboklab(49.53% 0.045 -0.1949)
OKLCHoklch(49.53% 0.2 283)
XYZxyz(17.2640, 10.7868, 58.9181)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945CD #B9CD45
analogous
#4575CD #5945CD #9D45CD
triadic
#5945CD #CD5945 #45CD59
tetradic
#5945CD #CD4575 #B9CD45 #45CD9D
square
#5945CD #CD4575 #B9CD45 #45CD9D
split-complementary
#5945CD #CD9D45 #75CD45
monochromatic
#2D2077 #3F2DA8 #5945CD #8475DA #AFA5E7

Accessibility & contrast

On white

6.65
#5945CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5945CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945CD
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945CD#FFFFFF#000000##FFFFFF
##5945CD1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#1C6883
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5945cd;
/* rgb */ color: rgb(89, 69, 205);
/* oklch */ color: oklch(49.5% 0.200 283.0);
Tailwind
colors: {
  custom: {
    50: '#937add',
    500: '#5945cd',
    950: '#000000',
  },
}
SCSS
$custom: #5945cd;
$custom-light: #937add;
$custom-dark: #000000;
JSON
{
  "hex": "#5945cd",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 248.824,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.20006,
    "h": 283
  },
  "luminance": 0.10788
}

Semantic roles & 50–950 ramp

primary
#5945CD
secondary
#CBD49A
accent
#E147CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5945CD

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

Preview Lab → · Contrast checker → · Palette generator →

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