#5945E4#5945E4

#5945E4 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.5% C 0.228 H 280.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5945E4
RGBrgb(89, 69, 228)
HSLhsl(248, 75%, 58%)
HSVhsv(248, 70%, 89%)
CMYKcmyk(61%, 69.7%, 0%, 10.6%)
CIE-LABlab(41.18, 52.13, -77.74)
CIE-LCHlch(41.18, 93.60, 303.84°)
OKLaboklab(51.54% 0.0415 -0.2242)
OKLCHoklch(51.54% 0.228 280.5)
XYZxyz(20.2471, 11.9800, 74.6292)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945E4 #D0E445
analogous
#4580E4 #5945E4 #A845E4
triadic
#5945E4 #E45945 #45E459
tetradic
#5945E4 #E44580 #D0E445 #45E4A8
square
#5945E4 #E44580 #D0E445 #45E4A8
split-complementary
#5945E4 #E4A845 #80E445
monochromatic
#271698 #341ECE #5945E4 #897AEC #B8B0F4

Accessibility & contrast

On white

6.18
#5945E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5945E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945E4
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945E4#FFFFFF#000000##FFFFFF
##5945E41.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E9
Deuteranopia (green-blind)
#005BE1
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5945e4;
/* rgb */ color: rgb(89, 69, 228);
/* oklch */ color: oklch(51.5% 0.228 280.5);
Tailwind
colors: {
  custom: {
    50: '#977bee',
    500: '#5945e4',
    950: '#000000',
  },
}
SCSS
$custom: #5945e4;
$custom-light: #977bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5945e4",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 247.547,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51542,
    "c": 0.22796,
    "h": 280.5
  },
  "luminance": 0.11982
}

Semantic roles & 50–950 ramp

primary
#5945E4
secondary
#DAE2A3
accent
#F137DA
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5945E4

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

Preview Lab → · Contrast checker → · Palette generator →

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