#8942C7#8942C7

#8942C7 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.5% C 0.199 H 305.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8942C7
RGBrgb(137, 66, 199)
HSLhsl(272, 54%, 52%)
HSVhsv(272, 67%, 78%)
CMYKcmyk(31.2%, 66.8%, 0%, 22%)
CIE-LABlab(43.27, 54.16, -57.49)
CIE-LCHlch(43.27, 78.98, 313.29°)
OKLaboklab(53.47% 0.1144 -0.1631)
OKLCHoklch(53.47% 0.199 305)
XYZxyz(22.5713, 13.3385, 55.4072)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942C7 #80C742
analogous
#4742C7 #8942C7 #C742C3
triadic
#8942C7 #C78942 #42C789
tetradic
#8942C7 #C74742 #80C742 #42C3C7
square
#8942C7 #C74742 #80C742 #42C3C7
split-complementary
#8942C7 #C3C742 #42C747
monochromatic
#4A216E #6A2F9D #8942C7 #A671D5 #C4A0E3

Accessibility & contrast

On white

5.73
#8942C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8942C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942C7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942C7#FFFFFF#000000##FFFFFF
##8942C71.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#1766C4
Tritanopia (blue-blind)
#7E5F7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8942c7;
/* rgb */ color: rgb(137, 66, 199);
/* oklch */ color: oklch(53.5% 0.199 305.0);
Tailwind
colors: {
  custom: {
    50: '#b07bd9',
    500: '#8942c7',
    950: '#000000',
  },
}
SCSS
$custom: #8942c7;
$custom-light: #b07bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8942c7",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 272.03,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53468,
    "c": 0.19925,
    "h": 305
  },
  "luminance": 0.13338
}

Semantic roles & 50–950 ramp

primary
#8942C7
secondary
#B0D095
accent
#DE4A8F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8942C7

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

Preview Lab → · Contrast checker → · Palette generator →

#8942C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva