#984CEB#984CEB

#984CEB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 59.0% C 0.228 H 301.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#984CEB
RGBrgb(152, 76, 235)
HSLhsl(269, 80%, 61%)
HSVhsv(269, 68%, 92%)
CMYKcmyk(35.3%, 67.7%, 0%, 7.8%)
CIE-LABlab(49.30, 60.92, -68.19)
CIE-LCHlch(49.30, 91.44, 311.78°)
OKLaboklab(58.98% 0.1195 -0.1941)
OKLCHoklch(58.98% 0.228 301.6)
XYZxyz(30.5251, 17.8423, 80.4169)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984CEB #9FEB4C
analogous
#4C4FEB #984CEB #E74CEB
triadic
#984CEB #EB984C #4CEB98
tetradic
#984CEB #EB4C4F #9FEB4C #4CEBE7
square
#984CEB #EB4C4F #9FEB4C #4CEBE7
split-complementary
#984CEB #EBE74C #4FEB4C
monochromatic
#5B13AA #7919E1 #984CEB #B883F1 #D7BAF7

Accessibility & contrast

On white

4.60
#984CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#984CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #984CEB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984CEB#FFFFFF#000000##FFFFFF
##984CEB1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#867196
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #984ceb;
/* rgb */ color: rgb(152, 76, 235);
/* oklch */ color: oklch(59.0% 0.228 301.6);
Tailwind
colors: {
  custom: {
    50: '#bc83f2',
    500: '#984ceb',
    950: '#000000',
  },
}
SCSS
$custom: #984ceb;
$custom-light: #bc83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#984ceb",
  "rgb": {
    "r": 152,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 268.679,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58981,
    "c": 0.22796,
    "h": 301.6
  },
  "luminance": 0.17842
}

Semantic roles & 50–950 ramp

primary
#984CEB
secondary
#CBE7AB
accent
#DC0977
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #984CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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