#8940DD#8940DD

#8940DD is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.9% C 0.225 H 300.2°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8940DD
RGBrgb(137, 64, 221)
HSLhsl(268, 70%, 56%)
HSVhsv(268, 71%, 87%)
CMYKcmyk(38%, 71%, 0%, 13.3%)
CIE-LABlab(44.53, 60.31, -68.10)
CIE-LCHlch(44.53, 90.97, 311.53°)
OKLaboklab(54.86% 0.1132 -0.1943)
OKLCHoklch(54.86% 0.225 300.2)
XYZxyz(25.1978, 14.2054, 69.8070)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940DD #94DD40
analogous
#4045DD #8940DD #D740DD
triadic
#8940DD #DD8940 #40DD89
tetradic
#8940DD #DD4045 #94DD40 #40DDD7
square
#8940DD #DD4045 #94DD40 #40DDD7
split-complementary
#8940DD #DDD740 #45DD40
monochromatic
#4D198A #6A22BE #8940DD #A974E6 #C9A8EF

Accessibility & contrast

On white

5.47
#8940DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8940DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940DD
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940DD#FFFFFF#000000##FFFFFF
##8940DD1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#0068DA
Tritanopia (blue-blind)
#76678B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8940dd;
/* rgb */ color: rgb(137, 64, 221);
/* oklch */ color: oklch(54.9% 0.225 300.2);
Tailwind
colors: {
  custom: {
    50: '#b27be9',
    500: '#8940dd',
    950: '#000000',
  },
}
SCSS
$custom: #8940dd;
$custom-light: #b27be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8940dd",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 267.898,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54865,
    "c": 0.22488,
    "h": 300.2
  },
  "luminance": 0.14206
}

Semantic roles & 50–950 ramp

primary
#8940DD
secondary
#BFDD9C
accent
#ED3B9A
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8940DD

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

Preview Lab → · Contrast checker → · Palette generator →

#8940DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva