#5945A2#5945A2

#5945A2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.1% C 0.144 H 289.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5945A2
RGBrgb(89, 69, 162)
HSLhsl(253, 40%, 45%)
HSVhsv(253, 57%, 64%)
CMYKcmyk(45.1%, 57.4%, 0%, 36.5%)
CIE-LABlab(35.96, 32.10, -47.72)
CIE-LCHlch(35.96, 57.51, 303.92°)
OKLaboklab(46.13% 0.0479 -0.136)
OKLCHoklch(46.13% 0.144 289.4)
XYZxyz(12.7677, 8.9883, 35.2376)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945A2 #8EA245
analogous
#455FA2 #5945A2 #8745A2
triadic
#5945A2 #A25945 #45A259
tetradic
#5945A2 #A2455F #8EA245 #45A287
square
#5945A2 #A2455F #8EA245 #45A287
split-complementary
#5945A2 #A28745 #5FA245
monochromatic
#2A204C #413377 #5945A2 #7966BE #9F91D0

Accessibility & contrast

On white

7.51
#5945A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5945A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5945A2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945A2#FFFFFF#000000##FFFFFF
##5945A21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C56A5
Deuteranopia (green-blind)
#1152A0
Tritanopia (blue-blind)
#43596C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5945a2;
/* rgb */ color: rgb(89, 69, 162);
/* oklch */ color: oklch(46.1% 0.144 289.4);
Tailwind
colors: {
  custom: {
    50: '#8d79be',
    500: '#5945a2',
    950: '#000000',
  },
}
SCSS
$custom: #5945a2;
$custom-light: #8d79be;
$custom-dark: #000000;
JSON
{
  "hex": "#5945a2",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 252.903,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46128,
    "c": 0.14421,
    "h": 289.4
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#5945A2
secondary
#B0BC87
accent
#D058B6
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0D0912
muted
#7D7B81

Preview Lab

Preview with #5945A2

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

Preview Lab → · Contrast checker → · Palette generator →

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