#5945E6#5945E6

#5945E6 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.7% C 0.230 H 280.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5945E6
RGBrgb(89, 69, 230)
HSLhsl(247, 76%, 59%)
HSVhsv(247, 70%, 90%)
CMYKcmyk(61.3%, 70%, 0%, 9.8%)
CIE-LABlab(41.36, 52.73, -78.59)
CIE-LCHlch(41.36, 94.64, 303.86°)
OKLaboklab(51.72% 0.0411 -0.2266)
OKLCHoklch(51.72% 0.23 280.3)
XYZxyz(20.5263, 12.0917, 76.0998)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945E6 #D2E645
analogous
#4581E6 #5945E6 #A945E6
triadic
#5945E6 #E65945 #45E659
tetradic
#5945E6 #E64581 #D2E645 #45E6A9
square
#5945E6 #E64581 #D2E645 #45E6A9
split-complementary
#5945E6 #E6A945 #81E645
monochromatic
#26159C #331CD2 #5945E6 #897BED #B9B1F5

Accessibility & contrast

On white

6.14
#5945E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5945E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945E6
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945E6#FFFFFF#000000##FFFFFF
##5945E61.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EB
Deuteranopia (green-blind)
#005BE3
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5945e6;
/* rgb */ color: rgb(89, 69, 230);
/* oklch */ color: oklch(51.7% 0.230 280.3);
Tailwind
colors: {
  custom: {
    50: '#977bef',
    500: '#5945e6',
    950: '#000000',
  },
}
SCSS
$custom: #5945e6;
$custom-light: #977bef;
$custom-dark: #000000;
JSON
{
  "hex": "#5945e6",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 247.453,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51722,
    "c": 0.23034,
    "h": 280.3
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#5945E6
secondary
#DBE3A4
accent
#F335DB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5945E6

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

Preview Lab → · Contrast checker → · Palette generator →

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