#8940D0#8940D0

#8940D0 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.9% C 0.211 H 303.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8940D0
RGBrgb(137, 64, 208)
HSLhsl(270, 61%, 53%)
HSVhsv(270, 69%, 82%)
CMYKcmyk(34.1%, 69.2%, 0%, 18.4%)
CIE-LABlab(43.56, 57.22, -62.21)
CIE-LCHlch(43.56, 84.52, 312.61°)
OKLaboklab(53.88% 0.1154 -0.177)
OKLCHoklch(53.88% 0.211 303.1)
XYZxyz(23.5324, 13.5392, 61.0359)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D0 #87D040
analogous
#4140D0 #8940D0 #D040CF
triadic
#8940D0 #D08940 #40D089
tetradic
#8940D0 #D04140 #87D040 #40CFD0
square
#8940D0 #D04140 #87D040 #40CFD0
split-complementary
#8940D0 #CFD040 #40D041
monochromatic
#4B1E78 #6A2AA9 #8940D0 #A771DC #C6A2E8

Accessibility & contrast

On white

5.66
#8940D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8940D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D0
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D0#FFFFFF#000000##FFFFFF
##8940D01.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D4
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#7B6283
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8940d0;
/* rgb */ color: rgb(137, 64, 208);
/* oklch */ color: oklch(53.9% 0.211 303.1);
Tailwind
colors: {
  custom: {
    50: '#b17adf',
    500: '#8940d0',
    950: '#000000',
  },
}
SCSS
$custom: #8940d0;
$custom-light: #b17adf;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d0",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 270.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5388,
    "c": 0.21128,
    "h": 303.1
  },
  "luminance": 0.13539
}

Semantic roles & 50–950 ramp

primary
#8940D0
secondary
#B5D597
accent
#E44493
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8940D0

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

Preview Lab → · Contrast checker → · Palette generator →

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