#5941BE#5941BE

#5941BE is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.186 H 285.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5941BE
RGBrgb(89, 65, 190)
HSLhsl(252, 49%, 50%)
HSVhsv(252, 66%, 75%)
CMYKcmyk(53.2%, 65.8%, 0%, 25.5%)
CIE-LABlab(37.15, 42.89, -62.40)
CIE-LCHlch(37.15, 75.72, 304.50°)
OKLaboklab(47.66% 0.0505 -0.1792)
OKLCHoklch(47.66% 0.186 285.7)
XYZxyz(15.3016, 9.6213, 49.7560)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5941BE #A6BE41
analogous
#4167BE #5941BE #9841BE
triadic
#5941BE #BE5941 #41BE59
tetradic
#5941BE #BE4167 #A6BE41 #41BE98
square
#5941BE #BE4167 #A6BE41 #41BE98
split-complementary
#5941BE #BE9841 #67BE41
monochromatic
#2E2263 #443190 #5941BE #816FCE #A99CDD

Accessibility & contrast

On white

7.18
#5941BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5941BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5941BE
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5941BE#FFFFFF#000000##FFFFFF
##5941BE1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#30607A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5941be;
/* rgb */ color: rgb(89, 65, 190);
/* oklch */ color: oklch(47.7% 0.186 285.7);
Tailwind
colors: {
  custom: {
    50: '#9177d3',
    500: '#5941be',
    950: '#000000',
  },
}
SCSS
$custom: #5941be;
$custom-light: #9177d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5941be",
  "rgb": {
    "r": 89,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 251.52,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.47657,
    "c": 0.18616,
    "h": 285.7
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

primary
#5941BE
secondary
#BFC991
accent
#D94FBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5941BE

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

Preview Lab → · Contrast checker → · Palette generator →

#5941BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva