#984ECF#984ECF

#984ECF is a mid, vivid violet. Relative luminance 0.166; OKLCH L 57.3% C 0.196 H 307.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#984ECF
RGBrgb(152, 78, 207)
HSLhsl(274, 57%, 56%)
HSVhsv(274, 62%, 81%)
CMYKcmyk(26.6%, 62.3%, 0%, 18.8%)
CIE-LABlab(47.79, 53.46, -54.72)
CIE-LCHlch(47.79, 76.50, 314.33°)
OKLaboklab(57.3% 0.1198 -0.1546)
OKLCHoklch(57.3% 0.196 307.8)
XYZxyz(26.9335, 16.6295, 60.8103)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984ECF #85CF4E
analogous
#574ECF #984ECF #CF4EC5
triadic
#984ECF #CF984E #4ECF98
tetradic
#984ECF #CF574E #85CF4E #4EC5CF
square
#984ECF #CF574E #85CF4E #4EC5CF
split-complementary
#984ECF #C5CF4E #4ECF57
monochromatic
#582380 #7930B0 #984ECF #B47EDC #D0AEE9

Accessibility & contrast

On white

4.85
#984ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#984ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984ECF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984ECF#FFFFFF#000000##FFFFFF
##984ECF1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016FD3
Deuteranopia (green-blind)
#3772CC
Tritanopia (blue-blind)
#906887
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #984ecf;
/* rgb */ color: rgb(152, 78, 207);
/* oklch */ color: oklch(57.3% 0.196 307.8);
Tailwind
colors: {
  custom: {
    50: '#ba84de',
    500: '#984ecf',
    950: '#000000',
  },
}
SCSS
$custom: #984ecf;
$custom-light: #ba84de;
$custom-dark: #000000;
JSON
{
  "hex": "#984ecf",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 207
  },
  "hsl": {
    "h": 274.419,
    "s": 57.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.573,
    "c": 0.19557,
    "h": 307.8
  },
  "luminance": 0.16629
}

Semantic roles & 50–950 ramp

primary
#984ECF
secondary
#B8D7A2
accent
#E14789
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #984ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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