#8945BA#8945BA

#8945BA is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.0% C 0.181 H 308.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8945BA
RGBrgb(137, 69, 186)
HSLhsl(275, 46%, 50%)
HSVhsv(275, 63%, 73%)
CMYKcmyk(26.3%, 62.9%, 0%, 27.1%)
CIE-LABlab(42.94, 49.66, -50.43)
CIE-LCHlch(42.94, 70.78, 314.56°)
OKLaboklab(52.96% 0.1119 -0.1424)
OKLCHoklch(52.96% 0.181 308.2)
XYZxyz(21.3058, 13.1201, 47.8549)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8945BA #76BA45
analogous
#4F45BA #8945BA #BA45B0
triadic
#8945BA #BA8945 #45BA89
tetradic
#8945BA #BA4F45 #76BA45 #45B0BA
square
#8945BA #BA4F45 #76BA45 #45B0BA
split-complementary
#8945BA #B0BA45 #45BA4F
monochromatic
#472461 #68348D #8945BA #A572CB #C29EDB

Accessibility & contrast

On white

5.79
#8945BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8945BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8945BA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8945BA#FFFFFF#000000##FFFFFF
##8945BA1.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BE
Deuteranopia (green-blind)
#3166B7
Tritanopia (blue-blind)
#825D79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8945ba;
/* rgb */ color: rgb(137, 69, 186);
/* oklch */ color: oklch(53.0% 0.181 308.2);
Tailwind
colors: {
  custom: {
    50: '#af7dcf',
    500: '#8945ba',
    950: '#000000',
  },
}
SCSS
$custom: #8945ba;
$custom-light: #af7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8945ba",
  "rgb": {
    "r": 137,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 274.872,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.18115,
    "h": 308.2
  },
  "luminance": 0.1312
}

Semantic roles & 50–950 ramp

primary
#8945BA
secondary
#A9C893
accent
#D65289
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8945BA

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

Preview Lab → · Contrast checker → · Palette generator →

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