#984EC8#984EC8

#984EC8 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.8% C 0.188 H 309.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#984EC8
RGBrgb(152, 78, 200)
HSLhsl(276, 53%, 55%)
HSVhsv(276, 61%, 78%)
CMYKcmyk(24%, 61%, 0%, 21.6%)
CIE-LABlab(47.36, 51.88, -51.38)
CIE-LCHlch(47.36, 73.02, 315.27°)
OKLaboklab(56.85% 0.12 -0.1448)
OKLCHoklch(56.85% 0.188 309.7)
XYZxyz(26.0966, 16.2948, 56.4028)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984EC8 #7EC84E
analogous
#5B4EC8 #984EC8 #C84EBB
triadic
#984EC8 #C8984E #4EC898
tetradic
#984EC8 #C85B4E #7EC84E #4EBBC8
square
#984EC8 #C85B4E #7EC84E #4EBBC8
split-complementary
#984EC8 #BBC84E #4EC85B
monochromatic
#572577 #7933A5 #984EC8 #B37DD7 #CEABE5

Accessibility & contrast

On white

4.93
#984EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#984EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984EC8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984EC8#FFFFFF#000000##FFFFFF
##984EC81.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196DCC
Deuteranopia (green-blind)
#3F71C5
Tritanopia (blue-blind)
#916684
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #984ec8;
/* rgb */ color: rgb(152, 78, 200);
/* oklch */ color: oklch(56.8% 0.188 309.7);
Tailwind
colors: {
  custom: {
    50: '#ba83d9',
    500: '#984ec8',
    950: '#000000',
  },
}
SCSS
$custom: #984ec8;
$custom-light: #ba83d9;
$custom-dark: #000000;
JSON
{
  "hex": "#984ec8",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 276.393,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56849,
    "c": 0.18805,
    "h": 309.7
  },
  "luminance": 0.16294
}

Semantic roles & 50–950 ramp

primary
#984EC8
secondary
#B3D39F
accent
#DC4C85
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #984EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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