#5942E0#5942E0

#5942E0 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.226 H 281.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5942E0
RGBrgb(89, 66, 224)
HSLhsl(249, 72%, 57%)
HSVhsv(249, 71%, 88%)
CMYKcmyk(60.3%, 70.5%, 0%, 12.2%)
CIE-LABlab(40.25, 52.54, -77.00)
CIE-LCHlch(40.25, 93.22, 304.31°)
OKLaboklab(50.77% 0.0443 -0.222)
OKLCHoklch(50.77% 0.226 281.3)
XYZxyz(19.5184, 11.4007, 71.6786)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942E0 #C9E042
analogous
#427AE0 #5942E0 #A842E0
triadic
#5942E0 #E05942 #42E059
tetradic
#5942E0 #E0427A #C9E042 #42E0A8
square
#5942E0 #E0427A #C9E042 #42E0A8
split-complementary
#5942E0 #E0A842 #7AE042
monochromatic
#291890 #3820C5 #5942E0 #8777E9 #B5ABF1

Accessibility & contrast

On white

6.40
#5942E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5942E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942E0
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942E0#FFFFFF#000000##FFFFFF
##5942E01.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E5
Deuteranopia (green-blind)
#0059DD
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5942e0;
/* rgb */ color: rgb(89, 66, 224);
/* oklch */ color: oklch(50.8% 0.226 281.3);
Tailwind
colors: {
  custom: {
    50: '#9679eb',
    500: '#5942e0',
    950: '#000000',
  },
}
SCSS
$custom: #5942e0;
$custom-light: #9679eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5942e0",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 248.734,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50765,
    "c": 0.22637,
    "h": 281.3
  },
  "luminance": 0.11402
}

Semantic roles & 50–950 ramp

primary
#5942E0
secondary
#D6DF9F
accent
#EF39D4
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5942E0

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

Preview Lab → · Contrast checker → · Palette generator →

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