#984EE7#984EE7

#984EE7 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.9% C 0.221 H 302.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#984EE7
RGBrgb(152, 78, 231)
HSLhsl(269, 76%, 61%)
HSVhsv(269, 66%, 91%)
CMYKcmyk(34.2%, 66.2%, 0%, 9.4%)
CIE-LABlab(49.37, 59.03, -65.83)
CIE-LCHlch(49.37, 88.43, 311.88°)
OKLaboklab(58.94% 0.1179 -0.1872)
OKLCHoklch(58.94% 0.221 302.2)
XYZxyz(30.0937, 17.8936, 77.4542)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984EE7 #9DE74E
analogous
#4E50E7 #984EE7 #E54EE7
triadic
#984EE7 #E7984E #4EE798
tetradic
#984EE7 #E74E50 #9DE74E #4EE7E5
square
#984EE7 #E74E50 #9DE74E #4EE7E5
split-complementary
#984EE7 #E7E54E #50E74E
monochromatic
#5B16A4 #791EDA #984EE7 #B784EE #D7BAF6

Accessibility & contrast

On white

4.59
#984EE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#984EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #984EE7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984EE7#FFFFFF#000000##FFFFFF
##984EE71.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#0075E4
Tritanopia (blue-blind)
#887194
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #984ee7;
/* rgb */ color: rgb(152, 78, 231);
/* oklch */ color: oklch(58.9% 0.221 302.2);
Tailwind
colors: {
  custom: {
    50: '#bc84ef',
    500: '#984ee7',
    950: '#000000',
  },
}
SCSS
$custom: #984ee7;
$custom-light: #bc84ef;
$custom-dark: #000000;
JSON
{
  "hex": "#984ee7",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 231
  },
  "hsl": {
    "h": 269.02,
    "s": 76.119,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58938,
    "c": 0.22127,
    "h": 302.2
  },
  "luminance": 0.17894
}

Semantic roles & 50–950 ramp

primary
#984EE7
secondary
#C9E5AB
accent
#D80D76
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #984EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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