#8945CA#8945CA

#8945CA is a mid, vivid violet. Relative luminance 0.138; OKLCH L 54.1% C 0.199 H 303.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8945CA
RGBrgb(137, 69, 202)
HSLhsl(271, 56%, 53%)
HSVhsv(271, 66%, 79%)
CMYKcmyk(32.2%, 65.8%, 0%, 20.8%)
CIE-LABlab(44.00, 53.42, -58.04)
CIE-LCHlch(44.00, 78.88, 312.62°)
OKLaboklab(54.06% 0.1108 -0.1648)
OKLCHoklch(54.06% 0.199 303.9)
XYZxyz(23.1029, 13.8389, 57.3197)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8945CA #86CA45
analogous
#4645CA #8945CA #CA45C8
triadic
#8945CA #CA8945 #45CA89
tetradic
#8945CA #CA4645 #86CA45 #45C8CA
square
#8945CA #CA4645 #86CA45 #45C8CA
split-complementary
#8945CA #C8CA45 #45CA46
monochromatic
#4B2174 #6A2FA3 #8945CA #A775D8 #C5A4E5

Accessibility & contrast

On white

5.57
#8945CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8945CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8945CA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8945CA#FFFFFF#000000##FFFFFF
##8945CA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#1768C7
Tritanopia (blue-blind)
#7D6282
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8945ca;
/* rgb */ color: rgb(137, 69, 202);
/* oklch */ color: oklch(54.1% 0.199 303.9);
Tailwind
colors: {
  custom: {
    50: '#b07ddb',
    500: '#8945ca',
    950: '#000000',
  },
}
SCSS
$custom: #8945ca;
$custom-light: #b07ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#8945ca",
  "rgb": {
    "r": 137,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 270.677,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54059,
    "c": 0.19856,
    "h": 303.9
  },
  "luminance": 0.13839
}

Semantic roles & 50–950 ramp

primary
#8945CA
secondary
#B5D299
accent
#DF4992
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8945CA

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

Preview Lab → · Contrast checker → · Palette generator →

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