#8942CD#8942CD

#8942CD is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.206 H 303.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8942CD
RGBrgb(137, 66, 205)
HSLhsl(271, 58%, 53%)
HSVhsv(271, 68%, 80%)
CMYKcmyk(33.2%, 67.8%, 0%, 19.6%)
CIE-LABlab(43.69, 55.57, -60.28)
CIE-LCHlch(43.69, 81.99, 312.67°)
OKLaboklab(53.9% 0.1137 -0.1713)
OKLCHoklch(53.9% 0.206 303.6)
XYZxyz(23.2817, 13.6226, 59.1487)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942CD #86CD42
analogous
#4342CD #8942CD #CD42CC
triadic
#8942CD #CD8942 #42CD89
tetradic
#8942CD #CD4342 #86CD42 #42CCCD
square
#8942CD #CD4342 #86CD42 #42CCCD
split-complementary
#8942CD #CCCD42 #42CD43
monochromatic
#4B1F76 #6A2CA6 #8942CD #A772DA #C5A3E7

Accessibility & contrast

On white

5.64
#8942CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8942CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942CD
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942CD#FFFFFF#000000##FFFFFF
##8942CD1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0067CA
Tritanopia (blue-blind)
#7C6282
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8942cd;
/* rgb */ color: rgb(137, 66, 205);
/* oklch */ color: oklch(53.9% 0.206 303.6);
Tailwind
colors: {
  custom: {
    50: '#b07bdd',
    500: '#8942cd',
    950: '#000000',
  },
}
SCSS
$custom: #8942cd;
$custom-light: #b07bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8942cd",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 270.647,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53899,
    "c": 0.20564,
    "h": 303.6
  },
  "luminance": 0.13623
}

Semantic roles & 50–950 ramp

primary
#8942CD
secondary
#B5D397
accent
#E14692
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8942CD

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

Preview Lab → · Contrast checker → · Palette generator →

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