#984EA2#984EA2

#984EA2 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 54.6% C 0.148 H 322.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#984EA2
RGBrgb(152, 78, 162)
HSLhsl(293, 35%, 47%)
HSVhsv(293, 52%, 64%)
CMYKcmyk(6.2%, 51.9%, 0%, 36.5%)
CIE-LABlab(45.27, 43.81, -32.47)
CIE-LCHlch(45.27, 54.53, 323.46°)
OKLaboklab(54.64% 0.1179 -0.0897)
OKLCHoklch(54.64% 0.148 322.7)
XYZxyz(22.1942, 14.7338, 35.8503)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#984EA2 #58A24E
analogous
#6E4EA2 #984EA2 #A24E82
triadic
#984EA2 #A2984E #4EA298
tetradic
#984EA2 #A26E4E #58A24E #4E82A2
square
#984EA2 #A26E4E #58A24E #4E82A2
split-complementary
#984EA2 #82A24E #4EA26E
monochromatic
#4A264F #713A79 #984EA2 #B272BB #C99BCF

Accessibility & contrast

On white

5.32
#984EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#984EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #984EA2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##984EA2#FFFFFF#000000##FFFFFF
##984EA21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#586EA0
Tritanopia (blue-blind)
#9A5971
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #984ea2;
/* rgb */ color: rgb(152, 78, 162);
/* oklch */ color: oklch(54.6% 0.148 322.7);
Tailwind
colors: {
  custom: {
    50: '#b883be',
    500: '#984ea2',
    950: '#000000',
  },
}
SCSS
$custom: #984ea2;
$custom-light: #b883be;
$custom-dark: #000000;
JSON
{
  "hex": "#984ea2",
  "rgb": {
    "r": 152,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 292.857,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54641,
    "c": 0.1481,
    "h": 322.7
  },
  "luminance": 0.14733
}

Semantic roles & 50–950 ramp

primary
#984EA2
secondary
#95BC90
accent
#CB5D6A
background
#FBF8FB
surface
#F6EFF6
border
#D0CAD0
text
#120B12
muted
#817C81

Preview Lab

Preview with #984EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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