#5942BB#5942BB

#5942BB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.181 H 286.0°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5942BB
RGBrgb(89, 66, 187)
HSLhsl(251, 48%, 50%)
HSVhsv(251, 65%, 73%)
CMYKcmyk(52.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(37.13, 41.41, -60.68)
CIE-LCHlch(37.13, 73.47, 304.31°)
OKLaboklab(47.56% 0.0499 -0.1741)
OKLCHoklch(47.56% 0.181 286)
XYZxyz(15.0350, 9.6074, 48.0663)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942BB #A4BB42
analogous
#4268BB #5942BB #9642BB
triadic
#5942BB #BB5942 #42BB59
tetradic
#5942BB #BB4268 #A4BB42 #42BB96
square
#5942BB #BB4268 #A4BB42 #42BB96
split-complementary
#5942BB #BB9642 #68BB42
monochromatic
#2E2261 #43328E #5942BB #806ECC #A89CDC

Accessibility & contrast

On white

7.19
#5942BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5942BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5942BB
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942BB#FFFFFF#000000##FFFFFF
##5942BB1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#326078
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5942bb;
/* rgb */ color: rgb(89, 66, 187);
/* oklch */ color: oklch(47.6% 0.181 286.0);
Tailwind
colors: {
  custom: {
    50: '#9178d0',
    500: '#5942bb',
    950: '#000000',
  },
}
SCSS
$custom: #5942bb;
$custom-light: #9178d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5942bb",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 251.405,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47563,
    "c": 0.18114,
    "h": 286
  },
  "luminance": 0.09608
}

Semantic roles & 50–950 ramp

primary
#5942BB
secondary
#BEC891
accent
#D750BE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5942BB

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

Preview Lab → · Contrast checker → · Palette generator →

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