#5942D9#5942D9

#5942D9 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.1% C 0.218 H 282.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5942D9
RGBrgb(89, 66, 217)
HSLhsl(249, 67%, 55%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(59%, 69.6%, 0%, 14.9%)
CIE-LABlab(39.63, 50.45, -74.01)
CIE-LCHlch(39.63, 89.57, 304.28°)
OKLaboklab(50.14% 0.0456 -0.2132)
OKLCHoklch(50.14% 0.218 282.1)
XYZxyz(18.5885, 11.0288, 66.7814)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942D9 #C2D942
analogous
#4276D9 #5942D9 #A442D9
triadic
#5942D9 #D95942 #42D959
tetradic
#5942D9 #D94276 #C2D942 #42D9A4
square
#5942D9 #D94276 #C2D942 #42D9A4
split-complementary
#5942D9 #D9A442 #76D942
monochromatic
#2B1B86 #3C25B9 #5942D9 #8675E3 #B3A8ED

Accessibility & contrast

On white

6.55
#5942D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5942D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942D9
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942D9#FFFFFF#000000##FFFFFF
##5942D91.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#006A89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5942d9;
/* rgb */ color: rgb(89, 66, 217);
/* oklch */ color: oklch(50.1% 0.218 282.1);
Tailwind
colors: {
  custom: {
    50: '#9579e6',
    500: '#5942d9',
    950: '#000000',
  },
}
SCSS
$custom: #5942d9;
$custom-light: #9579e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5942d9",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 249.139,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50135,
    "c": 0.21806,
    "h": 282.1
  },
  "luminance": 0.1103
}

Semantic roles & 50–950 ramp

primary
#5942D9
secondary
#D1DB9C
accent
#E93ECF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5942D9

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

Preview Lab → · Contrast checker → · Palette generator →

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