#5945E0#5945E0

#5945E0 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.2% C 0.223 H 280.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5945E0
RGBrgb(89, 69, 224)
HSLhsl(248, 71%, 57%)
HSVhsv(248, 69%, 88%)
CMYKcmyk(60.3%, 69.2%, 0%, 12.2%)
CIE-LABlab(40.83, 50.92, -76.04)
CIE-LCHlch(40.83, 91.52, 303.81°)
OKLaboklab(51.18% 0.0421 -0.2192)
OKLCHoklch(51.18% 0.223 280.9)
XYZxyz(19.6983, 11.7605, 71.7385)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945E0 #CCE045
analogous
#457EE0 #5945E0 #A745E0
triadic
#5945E0 #E05945 #45E059
tetradic
#5945E0 #E0457E #CCE045 #45E0A7
square
#5945E0 #E0457E #CCE045 #45E0A7
split-complementary
#5945E0 #E0A745 #7EE045
monochromatic
#281892 #3621C7 #5945E0 #8879E9 #B7AEF1

Accessibility & contrast

On white

6.26
#5945E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5945E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945E0
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945E0#FFFFFF#000000##FFFFFF
##5945E01.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E5
Deuteranopia (green-blind)
#005ADD
Tritanopia (blue-blind)
#006F8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5945e0;
/* rgb */ color: rgb(89, 69, 224);
/* oklch */ color: oklch(51.2% 0.223 280.9);
Tailwind
colors: {
  custom: {
    50: '#967beb',
    500: '#5945e0',
    950: '#000000',
  },
}
SCSS
$custom: #5945e0;
$custom-light: #967beb;
$custom-dark: #000000;
JSON
{
  "hex": "#5945e0",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 224
  },
  "hsl": {
    "h": 247.742,
    "s": 71.429,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51183,
    "c": 0.2232,
    "h": 280.9
  },
  "luminance": 0.11762
}

Semantic roles & 50–950 ramp

primary
#5945E0
secondary
#D8E0A1
accent
#EE3AD7
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5945E0

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

Preview Lab → · Contrast checker → · Palette generator →

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