#984CEA#984CEA

#984CEA is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.9% C 0.227 H 301.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#984CEA
RGBrgb(152, 76, 234)
HSLhsl(269, 79%, 61%)
HSVhsv(269, 68%, 92%)
CMYKcmyk(35%, 67.5%, 0%, 8.2%)
CIE-LABlab(49.23, 60.69, -67.74)
CIE-LCHlch(49.23, 90.95, 311.86°)
OKLaboklab(58.91% 0.1196 -0.1928)
OKLCHoklch(58.91% 0.227 301.8)
XYZxyz(30.3811, 17.7847, 79.6582)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984CEA #9EEA4C
analogous
#4C4FEA #984CEA #E74CEA
triadic
#984CEA #EA984C #4CEA98
tetradic
#984CEA #EA4C4F #9EEA4C #4CEAE7
square
#984CEA #EA4C4F #9EEA4C #4CEAE7
split-complementary
#984CEA #EAE74C #4FEA4C
monochromatic
#5B14A8 #791ADF #984CEA #B883F0 #D7BAF7

Accessibility & contrast

On white

4.61
#984CEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#984CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #984CEA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984CEA#FFFFFF#000000##FFFFFF
##984CEA1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#877195
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #984cea;
/* rgb */ color: rgb(152, 76, 234);
/* oklch */ color: oklch(58.9% 0.227 301.8);
Tailwind
colors: {
  custom: {
    50: '#bc83f2',
    500: '#984cea',
    950: '#000000',
  },
}
SCSS
$custom: #984cea;
$custom-light: #bc83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#984cea",
  "rgb": {
    "r": 152,
    "g": 76,
    "b": 234
  },
  "hsl": {
    "h": 268.861,
    "s": 79,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58908,
    "c": 0.22691,
    "h": 301.8
  },
  "luminance": 0.17785
}

Semantic roles & 50–950 ramp

primary
#984CEA
secondary
#CAE7AB
accent
#DB0A77
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #984CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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