#5942CD#5942CD

#5942CD is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.204 H 283.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5942CD
RGBrgb(89, 66, 205)
HSLhsl(250, 58%, 53%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(56.6%, 67.8%, 0%, 19.6%)
CIE-LABlab(38.60, 46.84, -68.79)
CIE-LCHlch(38.60, 83.22, 304.25°)
OKLaboklab(49.08% 0.0476 -0.1979)
OKLCHoklch(49.08% 0.204 283.5)
XYZxyz(17.0841, 10.4270, 58.8581)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942CD #B6CD42
analogous
#4270CD #5942CD #9E42CD
triadic
#5942CD #CD5942 #42CD59
tetradic
#5942CD #CD4270 #B6CD42 #42CD9E
square
#5942CD #CD4270 #B6CD42 #42CD9E
split-complementary
#5942CD #CD9E42 #70CD42
monochromatic
#2D1F76 #402CA6 #5942CD #8472DA #AEA3E7

Accessibility & contrast

On white

6.81
#5942CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5942CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942CD
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942CD#FFFFFF#000000##FFFFFF
##5942CD1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#1D6682
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5942cd;
/* rgb */ color: rgb(89, 66, 205);
/* oklch */ color: oklch(49.1% 0.204 283.5);
Tailwind
colors: {
  custom: {
    50: '#9378dd',
    500: '#5942cd',
    950: '#000000',
  },
}
SCSS
$custom: #5942cd;
$custom-light: #9378dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5942cd",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 249.928,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4908,
    "c": 0.20354,
    "h": 283.5
  },
  "luminance": 0.10428
}

Semantic roles & 50–950 ramp

primary
#5942CD
secondary
#C9D397
accent
#E146C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5942CD

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

Preview Lab → · Contrast checker → · Palette generator →

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