#8942D1#8942D1

#8942D1 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.210 H 302.6°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8942D1
RGBrgb(137, 66, 209)
HSLhsl(270, 61%, 54%)
HSVhsv(270, 68%, 82%)
CMYKcmyk(34.4%, 68.4%, 0%, 18%)
CIE-LABlab(43.97, 56.52, -62.13)
CIE-LCHlch(43.97, 83.99, 312.30°)
OKLaboklab(54.19% 0.1132 -0.1768)
OKLCHoklch(54.19% 0.21 302.6)
XYZxyz(23.7707, 13.8182, 61.7241)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8942D1 #8AD142
analogous
#4243D1 #8942D1 #D042D1
triadic
#8942D1 #D18942 #42D189
tetradic
#8942D1 #D14243 #8AD142 #42D1D0
square
#8942D1 #D14243 #8AD142 #42D1D0
split-complementary
#8942D1 #D1D042 #43D142
monochromatic
#4C1E7B #6A2AAC #8942D1 #A873DD #C6A4E9

Accessibility & contrast

On white

5.58
#8942D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8942D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8942D1
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8942D1#FFFFFF#000000##FFFFFF
##8942D11.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D5
Deuteranopia (green-blind)
#0067CE
Tritanopia (blue-blind)
#7A6384
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8942d1;
/* rgb */ color: rgb(137, 66, 209);
/* oklch */ color: oklch(54.2% 0.210 302.6);
Tailwind
colors: {
  custom: {
    50: '#b17ce0',
    500: '#8942d1',
    950: '#000000',
  },
}
SCSS
$custom: #8942d1;
$custom-light: #b17ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#8942d1",
  "rgb": {
    "r": 137,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 269.79,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54192,
    "c": 0.2099,
    "h": 302.6
  },
  "luminance": 0.13818
}

Semantic roles & 50–950 ramp

primary
#8942D1
secondary
#B8D699
accent
#E44494
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8942D1

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

Preview Lab → · Contrast checker → · Palette generator →

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