#5942D8#5942D8

#5942D8 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.0% C 0.217 H 282.2°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5942D8
RGBrgb(89, 66, 216)
HSLhsl(249, 66%, 55%)
HSVhsv(249, 69%, 85%)
CMYKcmyk(58.8%, 69.4%, 0%, 15.3%)
CIE-LABlab(39.54, 50.15, -73.58)
CIE-LCHlch(39.54, 89.05, 304.27°)
OKLaboklab(50.05% 0.0458 -0.212)
OKLCHoklch(50.05% 0.217 282.2)
XYZxyz(18.4588, 10.9769, 66.0985)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942D8 #C1D842
analogous
#4276D8 #5942D8 #A442D8
triadic
#5942D8 #D85942 #42D859
tetradic
#5942D8 #D84276 #C1D842 #42D8A4
square
#5942D8 #D84276 #C1D842 #42D8A4
split-complementary
#5942D8 #D8A442 #76D842
monochromatic
#2B1B84 #3C26B7 #5942D8 #8675E2 #B2A7ED

Accessibility & contrast

On white

6.57
#5942D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5942D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942D8
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942D8#FFFFFF#000000##FFFFFF
##5942D81.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5942d8;
/* rgb */ color: rgb(89, 66, 216);
/* oklch */ color: oklch(50.0% 0.217 282.2);
Tailwind
colors: {
  custom: {
    50: '#9579e5',
    500: '#5942d8',
    950: '#000000',
  },
}
SCSS
$custom: #5942d8;
$custom-light: #9579e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5942d8",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 249.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50046,
    "c": 0.21686,
    "h": 282.2
  },
  "luminance": 0.10978
}

Semantic roles & 50–950 ramp

primary
#5942D8
secondary
#D1DA9C
accent
#E93FCF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5942D8

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

Preview Lab → · Contrast checker → · Palette generator →

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