#5942BC#5942BC

#5942BC is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.6% C 0.182 H 285.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5942BC
RGBrgb(89, 66, 188)
HSLhsl(251, 48%, 50%)
HSVhsv(251, 65%, 74%)
CMYKcmyk(52.7%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.21, 41.71, -61.14)
CIE-LCHlch(37.21, 74.02, 304.30°)
OKLaboklab(47.65% 0.0498 -0.1755)
OKLCHoklch(47.65% 0.182 285.8)
XYZxyz(15.1424, 9.6503, 48.6320)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942BC #A5BC42
analogous
#4268BC #5942BC #9642BC
triadic
#5942BC #BC5942 #42BC59
tetradic
#5942BC #BC4268 #A5BC42 #42BC96
square
#5942BC #BC4268 #A5BC42 #42BC96
split-complementary
#5942BC #BC9642 #68BC42
monochromatic
#2E2261 #44328F #5942BC #806FCC #A89CDC

Accessibility & contrast

On white

7.17
#5942BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5942BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5942BC
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942BC#FFFFFF#000000##FFFFFF
##5942BC1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#326079
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5942bc;
/* rgb */ color: rgb(89, 66, 188);
/* oklch */ color: oklch(47.6% 0.182 285.8);
Tailwind
colors: {
  custom: {
    50: '#9178d1',
    500: '#5942bc',
    950: '#000000',
  },
}
SCSS
$custom: #5942bc;
$custom-light: #9178d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5942bc",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 251.311,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47645,
    "c": 0.18239,
    "h": 285.8
  },
  "luminance": 0.09651
}

Semantic roles & 50–950 ramp

primary
#5942BC
secondary
#BEC991
accent
#D850BE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5942BC

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

Preview Lab → · Contrast checker → · Palette generator →

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