#8942D4#8942D4

#8942D4 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.213 H 302.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8942D4
RGBrgb(137, 66, 212)
HSLhsl(269, 63%, 55%)
HSVhsv(269, 69%, 83%)
CMYKcmyk(35.4%, 68.9%, 0%, 16.9%)
CIE-LABlab(44.19, 57.24, -63.50)
CIE-LCHlch(44.19, 85.49, 312.03°)
OKLaboklab(54.42% 0.1128 -0.1808)
OKLCHoklch(54.42% 0.213 302)
XYZxyz(24.1456, 13.9682, 63.6986)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942D4 #8DD442
analogous
#4244D4 #8942D4 #D242D4
triadic
#8942D4 #D48942 #42D489
tetradic
#8942D4 #D44244 #8DD442 #42D4D2
square
#8942D4 #D44244 #8DD442 #42D4D2
split-complementary
#8942D4 #D4D242 #44D442
monochromatic
#4C1D7F #6B28B1 #8942D4 #A874DF #C7A6EB

Accessibility & contrast

On white

5.54
#8942D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8942D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942D4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942D4#FFFFFF#000000##FFFFFF
##8942D41.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#796486
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8942d4;
/* rgb */ color: rgb(137, 66, 212);
/* oklch */ color: oklch(54.4% 0.213 302.0);
Tailwind
colors: {
  custom: {
    50: '#b17ce2',
    500: '#8942d4',
    950: '#000000',
  },
}
SCSS
$custom: #8942d4;
$custom-light: #b17ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#8942d4",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 269.178,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54415,
    "c": 0.21308,
    "h": 302
  },
  "luminance": 0.13968
}

Semantic roles & 50–950 ramp

primary
#8942D4
secondary
#BAD89A
accent
#E64296
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8942D4

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

Preview Lab → · Contrast checker → · Palette generator →

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