#984EE2#984EE2

#984EE2 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.6% C 0.216 H 303.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#984EE2
RGBrgb(152, 78, 226)
HSLhsl(270, 72%, 60%)
HSVhsv(270, 65%, 89%)
CMYKcmyk(32.7%, 65.5%, 0%, 11.4%)
CIE-LABlab(49.03, 57.85, -63.56)
CIE-LCHlch(49.03, 85.95, 312.31°)
OKLaboklab(58.59% 0.1185 -0.1805)
OKLCHoklch(58.59% 0.216 303.3)
XYZxyz(29.3976, 17.6152, 73.7881)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984EE2 #98E24E
analogous
#4E4EE2 #984EE2 #E24EE2
triadic
#984EE2 #E2984E #4EE298
tetradic
#984EE2 #E24E4E #98E24E #4EE2E2
square
#984EE2 #E24E4E #98E24E #4EE2E2
split-complementary
#984EE2 #E2E24E #4EE24E
monochromatic
#5B1A9C #7922D1 #984EE2 #B783EB #D5B7F3

Accessibility & contrast

On white

4.64
#984EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#984EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #984EE2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984EE2#FFFFFF#000000##FFFFFF
##984EE21.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#1574DF
Tritanopia (blue-blind)
#8A6F91
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #984ee2;
/* rgb */ color: rgb(152, 78, 226);
/* oklch */ color: oklch(58.6% 0.216 303.3);
Tailwind
colors: {
  custom: {
    50: '#bb84ec',
    500: '#984ee2',
    950: '#000000',
  },
}
SCSS
$custom: #984ee2;
$custom-light: #bb84ec;
$custom-dark: #000000;
JSON
{
  "hex": "#984ee2",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 226
  },
  "hsl": {
    "h": 270,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58585,
    "c": 0.21593,
    "h": 303.3
  },
  "luminance": 0.17615
}

Semantic roles & 50–950 ramp

primary
#984EE2
secondary
#C6E3A9
accent
#EF3994
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #984EE2

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

Preview Lab → · Contrast checker → · Palette generator →

#984EE2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva