#984ED4#984ED4

#984ED4 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.201 H 306.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#984ED4
RGBrgb(152, 78, 212)
HSLhsl(273, 61%, 57%)
HSVhsv(273, 63%, 83%)
CMYKcmyk(28.3%, 63.2%, 0%, 16.9%)
CIE-LABlab(48.11, 54.60, -57.08)
CIE-LCHlch(48.11, 78.99, 313.73°)
OKLaboklab(57.63% 0.1196 -0.1615)
OKLCHoklch(57.63% 0.201 306.5)
XYZxyz(27.5544, 16.8779, 64.0808)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984ED4 #8AD44E
analogous
#554ED4 #984ED4 #D44ECD
triadic
#984ED4 #D4984E #4ED498
tetradic
#984ED4 #D4554E #8AD44E #4ECDD4
square
#984ED4 #D4554E #8AD44E #4ECDD4
split-complementary
#984ED4 #CDD44E #4ED455
monochromatic
#592187 #7A2DB8 #984ED4 #B57FE0 #D1B0EC

Accessibility & contrast

On white

4.80
#984ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#984ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984ED4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984ED4#FFFFFF#000000##FFFFFF
##984ED41.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#3173D1
Tritanopia (blue-blind)
#8E6A8A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #984ed4;
/* rgb */ color: rgb(152, 78, 212);
/* oklch */ color: oklch(57.6% 0.201 306.5);
Tailwind
colors: {
  custom: {
    50: '#ba84e2',
    500: '#984ed4',
    950: '#000000',
  },
}
SCSS
$custom: #984ed4;
$custom-light: #ba84e2;
$custom-dark: #000000;
JSON
{
  "hex": "#984ed4",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 212
  },
  "hsl": {
    "h": 273.134,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57629,
    "c": 0.20093,
    "h": 306.5
  },
  "luminance": 0.16878
}

Semantic roles & 50–950 ramp

primary
#984ED4
secondary
#BCDAA4
accent
#E4448C
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #984ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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