#5942CC#5942CC

#5942CC is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.0% C 0.202 H 283.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5942CC
RGBrgb(89, 66, 204)
HSLhsl(250, 58%, 53%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(56.4%, 67.6%, 0%, 20%)
CIE-LABlab(38.51, 46.54, -68.35)
CIE-LCHlch(38.51, 82.69, 304.25°)
OKLaboklab(48.99% 0.0477 -0.1966)
OKLCHoklch(48.99% 0.202 283.6)
XYZxyz(16.9638, 10.3789, 58.2245)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942CC #B5CC42
analogous
#4270CC #5942CC #9E42CC
triadic
#5942CC #CC5942 #42CC59
tetradic
#5942CC #CC4270 #B5CC42 #42CC9E
square
#5942CC #CC4270 #B5CC42 #42CC9E
split-complementary
#5942CC #CC9E42 #70CC42
monochromatic
#2E1F74 #402CA4 #5942CC #8372D9 #AEA2E6

Accessibility & contrast

On white

6.83
#5942CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5942CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942CC
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942CC#FFFFFF#000000##FFFFFF
##5942CC1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#1E6682
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5942cc;
/* rgb */ color: rgb(89, 66, 204);
/* oklch */ color: oklch(49.0% 0.202 283.6);
Tailwind
colors: {
  custom: {
    50: '#9378dd',
    500: '#5942cc',
    950: '#000000',
  },
}
SCSS
$custom: #5942cc;
$custom-light: #9378dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5942cc",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 250,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48994,
    "c": 0.20232,
    "h": 283.6
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5942CC

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

Preview Lab → · Contrast checker → · Palette generator →

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