#5942DE#5942DE

#5942DE is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.6% C 0.224 H 281.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#5942DE
RGBrgb(89, 66, 222)
HSLhsl(249, 70%, 56%)
HSVhsv(249, 70%, 87%)
CMYKcmyk(59.9%, 70.3%, 0%, 12.9%)
CIE-LABlab(40.07, 51.95, -76.16)
CIE-LCHlch(40.07, 92.18, 304.30°)
OKLaboklab(50.58% 0.0447 -0.2195)
OKLCHoklch(50.58% 0.224 281.5)
XYZxyz(19.2487, 11.2928, 70.2585)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942DE #C7DE42
analogous
#4279DE #5942DE #A742DE
triadic
#5942DE #DE5942 #42DE59
tetradic
#5942DE #DE4279 #C7DE42 #42DEA7
square
#5942DE #DE4279 #C7DE42 #42DEA7
split-complementary
#5942DE #DEA742 #79DE42
monochromatic
#2A198D #3922C1 #5942DE #8776E7 #B5AAF0

Accessibility & contrast

On white

6.44
#5942DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5942DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942DE
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942DE#FFFFFF#000000##FFFFFF
##5942DE1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E3
Deuteranopia (green-blind)
#0059DB
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5942de;
/* rgb */ color: rgb(89, 66, 222);
/* oklch */ color: oklch(50.6% 0.224 281.5);
Tailwind
colors: {
  custom: {
    50: '#9679ea',
    500: '#5942de',
    950: '#000000',
  },
}
SCSS
$custom: #5942de;
$custom-light: #9679ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5942de",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 248.846,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50584,
    "c": 0.22401,
    "h": 281.5
  },
  "luminance": 0.11294
}

Semantic roles & 50–950 ramp

primary
#5942DE
secondary
#D4DE9E
accent
#ED3BD3
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5942DE

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

Preview Lab → · Contrast checker → · Palette generator →

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