#5945AF#5945AF

#5945AF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.1% C 0.162 H 287.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5945AF
RGBrgb(89, 69, 175)
HSLhsl(251, 43%, 48%)
HSVhsv(251, 61%, 69%)
CMYKcmyk(49.1%, 60.6%, 0%, 31.4%)
CIE-LABlab(36.88, 36.01, -54.00)
CIE-LCHlch(36.88, 64.90, 303.70°)
OKLaboklab(47.1% 0.0477 -0.1544)
OKLCHoklch(47.1% 0.162 287.1)
XYZxyz(13.9836, 9.4746, 41.6411)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945AF #9BAF45
analogous
#4566AF #5945AF #8E45AF
triadic
#5945AF #AF5945 #45AF59
tetradic
#5945AF #AF4566 #9BAF45 #45AF8E
square
#5945AF #AF4566 #9BAF45 #45AF8E
split-complementary
#5945AF #AF8E45 #66AF45
monochromatic
#2C2257 #433483 #5945AF #7D6CC5 #A498D6

Accessibility & contrast

On white

7.25
#5945AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5945AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5945AF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945AF#FFFFFF#000000##FFFFFF
##5945AF1.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#3B5E73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5945af;
/* rgb */ color: rgb(89, 69, 175);
/* oklch */ color: oklch(47.1% 0.162 287.1);
Tailwind
colors: {
  custom: {
    50: '#8f79c8',
    500: '#5945af',
    950: '#000000',
  },
}
SCSS
$custom: #5945af;
$custom-light: #8f79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5945af",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 251.321,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47097,
    "c": 0.16164,
    "h": 287.1
  },
  "luminance": 0.09475
}

Semantic roles & 50–950 ramp

primary
#5945AF
secondary
#B8C28D
accent
#D355BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5945AF

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

Preview Lab → · Contrast checker → · Palette generator →

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