#5942D7#5942D7

#5942D7 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.216 H 282.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5942D7
RGBrgb(89, 66, 215)
HSLhsl(249, 65%, 55%)
HSVhsv(249, 69%, 84%)
CMYKcmyk(58.6%, 69.3%, 0%, 15.7%)
CIE-LABlab(39.45, 49.85, -73.15)
CIE-LCHlch(39.45, 88.52, 304.27°)
OKLaboklab(49.96% 0.0459 -0.2107)
OKLCHoklch(49.96% 0.216 282.3)
XYZxyz(18.3300, 10.9253, 65.4197)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942D7 #C0D742
analogous
#4275D7 #5942D7 #A442D7
triadic
#5942D7 #D75942 #42D759
tetradic
#5942D7 #D74275 #C0D742 #42D7A4
square
#5942D7 #D74275 #C0D742 #42D7A4
split-complementary
#5942D7 #D7A442 #75D742
monochromatic
#2C1C83 #3C26B5 #5942D7 #8575E2 #B2A7EC

Accessibility & contrast

On white

6.59
#5942D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5942D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942D7
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942D7#FFFFFF#000000##FFFFFF
##5942D71.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0058D4
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5942d7;
/* rgb */ color: rgb(89, 66, 215);
/* oklch */ color: oklch(50.0% 0.216 282.3);
Tailwind
colors: {
  custom: {
    50: '#9578e5',
    500: '#5942d7',
    950: '#000000',
  },
}
SCSS
$custom: #5942d7;
$custom-light: #9578e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5942d7",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 249.262,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49957,
    "c": 0.21566,
    "h": 282.3
  },
  "luminance": 0.10927
}

Semantic roles & 50–950 ramp

primary
#5942D7
secondary
#D0DA9B
accent
#E840CE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5942D7

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

Preview Lab → · Contrast checker → · Palette generator →

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