#5945AB#5945AB

#5945AB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.8% C 0.156 H 287.8°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5945AB
RGBrgb(89, 69, 171)
HSLhsl(252, 43%, 47%)
HSVhsv(252, 60%, 67%)
CMYKcmyk(48%, 59.6%, 0%, 32.9%)
CIE-LABlab(36.59, 34.80, -52.09)
CIE-LCHlch(36.59, 62.64, 303.75°)
OKLaboklab(46.79% 0.0478 -0.1488)
OKLCHoklch(46.79% 0.156 287.8)
XYZxyz(13.5965, 9.3198, 39.6027)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945AB #97AB45
analogous
#4564AB #5945AB #8C45AB
triadic
#5945AB #AB5945 #45AB59
tetradic
#5945AB #AB4564 #97AB45 #45AB8C
square
#5945AB #AB4564 #97AB45 #45AB8C
split-complementary
#5945AB #AB8C45 #64AB45
monochromatic
#2C2254 #42337F #5945AB #7C6AC3 #A296D5

Accessibility & contrast

On white

7.33
#5945AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5945AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5945AB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945AB#FFFFFF#000000##FFFFFF
##5945AB1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#3E5C71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5945ab;
/* rgb */ color: rgb(89, 69, 171);
/* oklch */ color: oklch(46.8% 0.156 287.8);
Tailwind
colors: {
  custom: {
    50: '#8e79c5',
    500: '#5945ab',
    950: '#000000',
  },
}
SCSS
$custom: #5945ab;
$custom-light: #8e79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5945ab",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 251.765,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46793,
    "c": 0.15633,
    "h": 287.8
  },
  "luminance": 0.0932
}

Semantic roles & 50–950 ramp

primary
#5945AB
secondary
#B6C08B
accent
#D256BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5945AB

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

Preview Lab → · Contrast checker → · Palette generator →

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