#8945B7#8945B7

#8945B7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.178 H 309.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8945B7
RGBrgb(137, 69, 183)
HSLhsl(276, 45%, 49%)
HSVhsv(276, 62%, 72%)
CMYKcmyk(25.1%, 62.3%, 0%, 28.2%)
CIE-LABlab(42.75, 48.97, -48.98)
CIE-LCHlch(42.75, 69.26, 315.00°)
OKLaboklab(52.76% 0.1121 -0.1382)
OKLCHoklch(52.76% 0.178 309)
XYZxyz(20.9902, 12.9939, 46.1929)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8945B7 #73B745
analogous
#5045B7 #8945B7 #B745AC
triadic
#8945B7 #B78945 #45B789
tetradic
#8945B7 #B75045 #73B745 #45ACB7
square
#8945B7 #B75045 #73B745 #45ACB7
split-complementary
#8945B7 #ACB745 #45B750
monochromatic
#46235E #68348B #8945B7 #A570C9 #C19DDA

Accessibility & contrast

On white

5.84
#8945B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8945B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8945B7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8945B7#FFFFFF#000000##FFFFFF
##8945B71.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C62BB
Deuteranopia (green-blind)
#3566B4
Tritanopia (blue-blind)
#825B78
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8945b7;
/* rgb */ color: rgb(137, 69, 183);
/* oklch */ color: oklch(52.8% 0.178 309.0);
Tailwind
colors: {
  custom: {
    50: '#af7ccd',
    500: '#8945b7',
    950: '#000000',
  },
}
SCSS
$custom: #8945b7;
$custom-light: #af7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#8945b7",
  "rgb": {
    "r": 137,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 275.789,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52761,
    "c": 0.17789,
    "h": 309
  },
  "luminance": 0.12994
}

Semantic roles & 50–950 ramp

primary
#8945B7
secondary
#A7C692
accent
#D55387
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8945B7

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

Preview Lab → · Contrast checker → · Palette generator →

#8945B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva