#5945B2#5945B2

#5945B2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.3% C 0.166 H 286.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5945B2
RGBrgb(89, 69, 178)
HSLhsl(251, 44%, 48%)
HSVhsv(251, 61%, 70%)
CMYKcmyk(50%, 61.2%, 0%, 30.2%)
CIE-LABlab(37.10, 36.92, -55.42)
CIE-LCHlch(37.10, 66.59, 303.68°)
OKLaboklab(47.33% 0.0475 -0.1586)
OKLCHoklch(47.33% 0.166 286.7)
XYZxyz(14.2815, 9.5938, 43.2101)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945B2 #9EB245
analogous
#4567B2 #5945B2 #8F45B2
triadic
#5945B2 #B25945 #45B259
tetradic
#5945B2 #B24567 #9EB245 #45B28F
square
#5945B2 #B24567 #9EB245 #45B28F
split-complementary
#5945B2 #B28F45 #67B245
monochromatic
#2D235A #433486 #5945B2 #7E6EC7 #A59AD8

Accessibility & contrast

On white

7.19
#5945B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5945B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5945B2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945B2#FFFFFF#000000##FFFFFF
##5945B21.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)
#005AB6
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#395F75
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5945b2;
/* rgb */ color: rgb(89, 69, 178);
/* oklch */ color: oklch(47.3% 0.166 286.7);
Tailwind
colors: {
  custom: {
    50: '#8f79ca',
    500: '#5945b2',
    950: '#000000',
  },
}
SCSS
$custom: #5945b2;
$custom-light: #8f79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5945b2",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 251.009,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47329,
    "c": 0.16559,
    "h": 286.7
  },
  "luminance": 0.09594
}

Semantic roles & 50–950 ramp

primary
#5945B2
secondary
#BAC48F
accent
#D454BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5945B2

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

Preview Lab → · Contrast checker → · Palette generator →

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