#984DC7#984DC7

#984DC7 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.7% C 0.188 H 310.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#984DC7
RGBrgb(152, 77, 199)
HSLhsl(277, 52%, 54%)
HSVhsv(277, 61%, 78%)
CMYKcmyk(23.6%, 61.3%, 0%, 22%)
CIE-LABlab(47.11, 52.15, -51.20)
CIE-LCHlch(47.11, 73.08, 315.53°)
OKLaboklab(56.65% 0.1213 -0.1442)
OKLCHoklch(56.65% 0.188 310.1)
XYZxyz(25.9096, 16.1072, 55.7659)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984DC7 #7CC74D
analogous
#5B4DC7 #984DC7 #C74DB9
triadic
#984DC7 #C7984D #4DC798
tetradic
#984DC7 #C75B4D #7CC74D #4DB9C7
square
#984DC7 #C75B4D #7CC74D #4DB9C7
split-complementary
#984DC7 #B9C74D #4DC75B
monochromatic
#562575 #7833A3 #984DC7 #B37CD6 #CEAAE4

Accessibility & contrast

On white

4.97
#984DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#984DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984DC7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984DC7#FFFFFF#000000##FFFFFF
##984DC71.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186CCB
Deuteranopia (green-blind)
#3F71C4
Tritanopia (blue-blind)
#926483
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #984dc7;
/* rgb */ color: rgb(152, 77, 199);
/* oklch */ color: oklch(56.7% 0.188 310.1);
Tailwind
colors: {
  custom: {
    50: '#ba83d9',
    500: '#984dc7',
    950: '#000000',
  },
}
SCSS
$custom: #984dc7;
$custom-light: #ba83d9;
$custom-dark: #000000;
JSON
{
  "hex": "#984dc7",
  "rgb": {
    "r": 152,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 276.885,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56652,
    "c": 0.18842,
    "h": 310.1
  },
  "luminance": 0.16107
}

Semantic roles & 50–950 ramp

primary
#984DC7
secondary
#B2D29E
accent
#DC4C83
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #984DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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