#8940D3#8940D3

#8940D3 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.214 H 302.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8940D3
RGBrgb(137, 64, 211)
HSLhsl(270, 63%, 54%)
HSVhsv(270, 70%, 83%)
CMYKcmyk(35.1%, 69.7%, 0%, 17.3%)
CIE-LABlab(43.78, 57.93, -63.58)
CIE-LCHlch(43.78, 86.01, 312.34°)
OKLaboklab(54.1% 0.1149 -0.181)
OKLCHoklch(54.1% 0.214 302.4)
XYZxyz(23.9050, 13.6883, 62.9981)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D3 #8AD340
analogous
#4041D3 #8940D3 #D340D3
triadic
#8940D3 #D38940 #40D389
tetradic
#8940D3 #D34041 #8AD340 #40D3D3
square
#8940D3 #D34041 #8AD340 #40D3D3
split-complementary
#8940D3 #D3D340 #41D340
monochromatic
#4C1D7C #6A28AE #8940D3 #A872DE #C6A3EA

Accessibility & contrast

On white

5.62
#8940D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8940D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D3
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D3#FFFFFF#000000##FFFFFF
##8940D31.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#7A6385
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8940d3;
/* rgb */ color: rgb(137, 64, 211);
/* oklch */ color: oklch(54.1% 0.214 302.4);
Tailwind
colors: {
  custom: {
    50: '#b17ae1',
    500: '#8940d3',
    950: '#000000',
  },
}
SCSS
$custom: #8940d3;
$custom-light: #b17ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d3",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 269.796,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54103,
    "c": 0.21443,
    "h": 302.4
  },
  "luminance": 0.13688
}

Semantic roles & 50–950 ramp

primary
#8940D3
secondary
#B8D798
accent
#E64294
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8940D3

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

Preview Lab → · Contrast checker → · Palette generator →

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