#984AC7#984AC7

#984AC7 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.3% C 0.193 H 310.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#984AC7
RGBrgb(152, 74, 199)
HSLhsl(277, 53%, 54%)
HSVhsv(277, 63%, 78%)
CMYKcmyk(23.6%, 62.8%, 0%, 22%)
CIE-LABlab(46.57, 53.62, -52.06)
CIE-LCHlch(46.57, 74.74, 315.84°)
OKLaboklab(56.26% 0.1249 -0.1468)
OKLCHoklch(56.26% 0.193 310.4)
XYZxyz(25.7045, 15.6970, 55.6975)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984AC7 #79C74A
analogous
#594AC7 #984AC7 #C74AB7
triadic
#984AC7 #C7984A #4AC798
tetradic
#984AC7 #C7594A #79C74A #4AB7C7
square
#984AC7 #C7594A #79C74A #4AB7C7
split-complementary
#984AC7 #B7C74A #4AC759
monochromatic
#552473 #7832A2 #984AC7 #B379D5 #CDA7E4

Accessibility & contrast

On white

5.07
#984AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#984AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984AC7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984AC7#FFFFFF#000000##FFFFFF
##984AC71.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6BCB
Deuteranopia (green-blind)
#3B70C4
Tritanopia (blue-blind)
#926282
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #984ac7;
/* rgb */ color: rgb(152, 74, 199);
/* oklch */ color: oklch(56.3% 0.193 310.4);
Tailwind
colors: {
  custom: {
    50: '#ba81d9',
    500: '#984ac7',
    950: '#000000',
  },
}
SCSS
$custom: #984ac7;
$custom-light: #ba81d9;
$custom-dark: #000000;
JSON
{
  "hex": "#984ac7",
  "rgb": {
    "r": 152,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 277.44,
    "s": 52.743,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56261,
    "c": 0.19269,
    "h": 310.4
  },
  "luminance": 0.15696
}

Semantic roles & 50–950 ramp

primary
#984AC7
secondary
#B0D19C
accent
#DC4C82
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #984AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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