#984EDB#984EDB

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

Color values

HEX#984EDB
RGBrgb(152, 78, 219)
HSLhsl(271, 66%, 58%)
HSVhsv(271, 64%, 86%)
CMYKcmyk(30.6%, 64.4%, 0%, 14.1%)
CIE-LABlab(48.56, 56.22, -60.34)
CIE-LCHlch(48.56, 82.47, 312.97°)
OKLaboklab(58.1% 0.1191 -0.1711)
OKLCHoklch(58.1% 0.208 304.8)
XYZxyz(28.4566, 17.2388, 68.8324)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984EDB #91DB4E
analogous
#514EDB #984EDB #DB4ED8
triadic
#984EDB #DB984E #4EDB98
tetradic
#984EDB #DB514E #91DB4E #4ED8DB
square
#984EDB #DB514E #91DB4E #4ED8DB
split-complementary
#984EDB #D8DB4E #4EDB51
monochromatic
#5A1E91 #7A28C4 #984EDB #B681E5 #D3B4F0

Accessibility & contrast

On white

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

On black

4.45
#984EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##984EDB#FFFFFF#000000##FFFFFF
##984EDB1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#2673D8
Tritanopia (blue-blind)
#8C6C8E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #984edb;
/* rgb */ color: rgb(152, 78, 219);
/* oklch */ color: oklch(58.1% 0.208 304.8);
Tailwind
colors: {
  custom: {
    50: '#bb84e7',
    500: '#984edb',
    950: '#000000',
  },
}
SCSS
$custom: #984edb;
$custom-light: #bb84e7;
$custom-dark: #000000;
JSON
{
  "hex": "#984edb",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 219
  },
  "hsl": {
    "h": 271.489,
    "s": 66.197,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58101,
    "c": 0.20844,
    "h": 304.8
  },
  "luminance": 0.17239
}

Semantic roles & 50–950 ramp

primary
#984EDB
secondary
#C1DEA6
accent
#E93F90
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #984EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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