#5941BF#5941BF

#5941BF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.187 H 285.6°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5941BF
RGBrgb(89, 65, 191)
HSLhsl(251, 50%, 50%)
HSVhsv(251, 66%, 75%)
CMYKcmyk(53.4%, 66%, 0%, 25.1%)
CIE-LABlab(37.23, 43.19, -62.86)
CIE-LCHlch(37.23, 76.27, 304.49°)
OKLaboklab(47.74% 0.0504 -0.1805)
OKLCHoklch(47.74% 0.187 285.6)
XYZxyz(15.4113, 9.6652, 50.3336)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5941BF #A7BF41
analogous
#4168BF #5941BF #9841BF
triadic
#5941BF #BF5941 #41BF59
tetradic
#5941BF #BF4168 #A7BF41 #41BF98
square
#5941BF #BF4168 #A7BF41 #41BF98
split-complementary
#5941BF #BF9841 #68BF41
monochromatic
#2E2264 #433192 #5941BF #816FCE #A99DDE

Accessibility & contrast

On white

7.16
#5941BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5941BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5941BF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5941BF#FFFFFF#000000##FFFFFF
##5941BF1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#2F617A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5941bf;
/* rgb */ color: rgb(89, 65, 191);
/* oklch */ color: oklch(47.7% 0.187 285.6);
Tailwind
colors: {
  custom: {
    50: '#9177d3',
    500: '#5941bf',
    950: '#000000',
  },
}
SCSS
$custom: #5941bf;
$custom-light: #9177d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5941bf",
  "rgb": {
    "r": 89,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 251.429,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4774,
    "c": 0.18741,
    "h": 285.6
  },
  "luminance": 0.09666
}

Semantic roles & 50–950 ramp

primary
#5941BF
secondary
#BFCA92
accent
#D94FBF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5941BF

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

Preview Lab → · Contrast checker → · Palette generator →

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