#984FD8#984FD8

#984FD8 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.0% C 0.204 H 305.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#984FD8
RGBrgb(152, 79, 216)
HSLhsl(272, 64%, 58%)
HSVhsv(272, 63%, 85%)
CMYKcmyk(29.6%, 63.4%, 0%, 15.3%)
CIE-LABlab(48.54, 55.03, -58.66)
CIE-LCHlch(48.54, 80.43, 313.17°)
OKLaboklab(58.03% 0.1182 -0.1661)
OKLCHoklch(58.03% 0.204 305.4)
XYZxyz(28.1368, 17.2254, 66.7950)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984FD8 #8FD84F
analogous
#534FD8 #984FD8 #D84FD3
triadic
#984FD8 #D8984F #4FD898
tetradic
#984FD8 #D8534F #8FD84F #4FD3D8
square
#984FD8 #D8534F #8FD84F #4FD3D8
split-complementary
#984FD8 #D3D84F #4FD853
monochromatic
#5A1F8D #7A2ABF #984FD8 #B581E3 #D3B3EE

Accessibility & contrast

On white

4.72
#984FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#984FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984FD8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984FD8#FFFFFF#000000##FFFFFF
##984FD81.004.724.444.72
#FFFFFF4.721.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#2D74D5
Tritanopia (blue-blind)
#8D6C8C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #984fd8;
/* rgb */ color: rgb(152, 79, 216);
/* oklch */ color: oklch(58.0% 0.204 305.4);
Tailwind
colors: {
  custom: {
    50: '#bb84e5',
    500: '#984fd8',
    950: '#000000',
  },
}
SCSS
$custom: #984fd8;
$custom-light: #bb84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#984fd8",
  "rgb": {
    "r": 152,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 271.971,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58027,
    "c": 0.20388,
    "h": 305.4
  },
  "luminance": 0.17225
}

Semantic roles & 50–950 ramp

primary
#984FD8
secondary
#C0DDA6
accent
#E7418E
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #984FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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