#984ED2#984ED2

#984ED2 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.5% C 0.199 H 307.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#984ED2
RGBrgb(152, 78, 210)
HSLhsl(274, 59%, 56%)
HSVhsv(274, 63%, 82%)
CMYKcmyk(27.6%, 62.9%, 0%, 17.6%)
CIE-LABlab(47.98, 54.14, -56.14)
CIE-LCHlch(47.98, 77.99, 313.96°)
OKLaboklab(57.5% 0.1197 -0.1587)
OKLCHoklch(57.5% 0.199 307)
XYZxyz(27.3037, 16.7776, 62.7603)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984ED2 #88D24E
analogous
#564ED2 #984ED2 #D24ECA
triadic
#984ED2 #D2984E #4ED298
tetradic
#984ED2 #D2564E #88D24E #4ECAD2
square
#984ED2 #D2564E #88D24E #4ECAD2
split-complementary
#984ED2 #CAD24E #4ED256
monochromatic
#592284 #7A2EB5 #984ED2 #B47FDE #D1B0EB

Accessibility & contrast

On white

4.82
#984ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#984ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984ED2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984ED2#FFFFFF#000000##FFFFFF
##984ED21.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#3472CF
Tritanopia (blue-blind)
#8F6989
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #984ed2;
/* rgb */ color: rgb(152, 78, 210);
/* oklch */ color: oklch(57.5% 0.199 307.0);
Tailwind
colors: {
  custom: {
    50: '#ba84e0',
    500: '#984ed2',
    950: '#000000',
  },
}
SCSS
$custom: #984ed2;
$custom-light: #ba84e0;
$custom-dark: #000000;
JSON
{
  "hex": "#984ed2",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 273.636,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57497,
    "c": 0.19878,
    "h": 307
  },
  "luminance": 0.16777
}

Semantic roles & 50–950 ramp

primary
#984ED2
secondary
#BBD9A3
accent
#E3458A
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #984ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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