#5945CB#5945CB

#5945CB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.4% C 0.198 H 283.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5945CB
RGBrgb(89, 69, 203)
HSLhsl(249, 56%, 53%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(56.2%, 66%, 0%, 20.4%)
CIE-LABlab(39.05, 44.54, -66.88)
CIE-LCHlch(39.05, 80.36, 303.66°)
OKLaboklab(49.36% 0.0452 -0.1923)
OKLCHoklch(49.36% 0.198 283.2)
XYZxyz(17.0241, 10.6908, 57.6548)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945CB #B7CB45
analogous
#4574CB #5945CB #9C45CB
triadic
#5945CB #CB5945 #45CB59
tetradic
#5945CB #CB4574 #B7CB45 #45CB9C
square
#5945CB #CB4574 #B7CB45 #45CB9C
split-complementary
#5945CB #CB9C45 #74CB45
monochromatic
#2D2175 #402EA5 #5945CB #8475D8 #AEA5E6

Accessibility & contrast

On white

6.69
#5945CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5945CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945CB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945CB#FFFFFF#000000##FFFFFF
##5945CB1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#206782
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5945cb;
/* rgb */ color: rgb(89, 69, 203);
/* oklch */ color: oklch(49.4% 0.198 283.2);
Tailwind
colors: {
  custom: {
    50: '#937adc',
    500: '#5945cb',
    950: '#000000',
  },
}
SCSS
$custom: #5945cb;
$custom-light: #937adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5945cb",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 248.955,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49358,
    "c": 0.19756,
    "h": 283.2
  },
  "luminance": 0.10692
}

Semantic roles & 50–950 ramp

primary
#5945CB
secondary
#CAD399
accent
#E048C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5945CB

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

Preview Lab → · Contrast checker → · Palette generator →

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