#5941B2#5941B2

#5941B2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.171 H 287.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5941B2
RGBrgb(89, 65, 178)
HSLhsl(253, 47%, 48%)
HSVhsv(253, 63%, 70%)
CMYKcmyk(50%, 63.5%, 0%, 30.2%)
CIE-LABlab(36.21, 39.29, -56.86)
CIE-LCHlch(36.21, 69.12, 304.64°)
OKLaboklab(46.68% 0.0518 -0.1629)
OKLCHoklch(46.68% 0.171 287.6)
XYZxyz(14.0437, 9.1182, 43.1309)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5941B2 #9AB241
analogous
#4162B2 #5941B2 #9141B2
triadic
#5941B2 #B25941 #41B259
tetradic
#5941B2 #B24162 #9AB241 #41B291
square
#5941B2 #B24162 #9AB241 #41B291
split-complementary
#5941B2 #B29141 #62B241
monochromatic
#2C2058 #433185 #5941B2 #7D68C8 #A395D8

Accessibility & contrast

On white

7.44
#5941B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5941B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5941B2
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5941B2#FFFFFF#000000##FFFFFF
##5941B21.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#3A5C73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5941b2;
/* rgb */ color: rgb(89, 65, 178);
/* oklch */ color: oklch(46.7% 0.171 287.6);
Tailwind
colors: {
  custom: {
    50: '#8f77ca',
    500: '#5941b2',
    950: '#000000',
  },
}
SCSS
$custom: #5941b2;
$custom-light: #8f77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5941b2",
  "rgb": {
    "r": 89,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 252.743,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46678,
    "c": 0.17093,
    "h": 287.6
  },
  "luminance": 0.09119
}

Semantic roles & 50–950 ramp

primary
#5941B2
secondary
#B8C48B
accent
#D652BA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5941B2

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

Preview Lab → · Contrast checker → · Palette generator →

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