#984EC7#984EC7

#984EC7 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.8% C 0.187 H 309.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#984EC7
RGBrgb(152, 78, 199)
HSLhsl(277, 52%, 54%)
HSVhsv(277, 61%, 78%)
CMYKcmyk(23.6%, 60.8%, 0%, 22%)
CIE-LABlab(47.30, 51.65, -50.90)
CIE-LCHlch(47.30, 72.52, 315.42°)
OKLaboklab(56.79% 0.12 -0.1434)
OKLCHoklch(56.79% 0.187 309.9)
XYZxyz(25.9801, 16.2482, 55.7894)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984EC7 #7DC74E
analogous
#5C4EC7 #984EC7 #C74EBA
triadic
#984EC7 #C7984E #4EC798
tetradic
#984EC7 #C75C4E #7DC74E #4EBAC7
square
#984EC7 #C75C4E #7DC74E #4EBAC7
split-complementary
#984EC7 #BAC74E #4EC75C
monochromatic
#562575 #7834A4 #984EC7 #B37CD6 #CEABE4

Accessibility & contrast

On white

4.94
#984EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#984EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984EC7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984EC7#FFFFFF#000000##FFFFFF
##984EC71.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCB
Deuteranopia (green-blind)
#4071C4
Tritanopia (blue-blind)
#926583
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #984ec7;
/* rgb */ color: rgb(152, 78, 199);
/* oklch */ color: oklch(56.8% 0.187 309.9);
Tailwind
colors: {
  custom: {
    50: '#ba83d9',
    500: '#984ec7',
    950: '#000000',
  },
}
SCSS
$custom: #984ec7;
$custom-light: #ba83d9;
$custom-dark: #000000;
JSON
{
  "hex": "#984ec7",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 199
  },
  "hsl": {
    "h": 276.694,
    "s": 51.931,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56786,
    "c": 0.18699,
    "h": 309.9
  },
  "luminance": 0.16248
}

Semantic roles & 50–950 ramp

primary
#984EC7
secondary
#B3D29F
accent
#DB4C84
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #984EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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