#981788#981788

#981788 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.197 H 334.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#981788
RGBrgb(152, 23, 136)
HSLhsl(307, 74%, 34%)
HSVhsv(307, 85%, 60%)
CMYKcmyk(0%, 84.9%, 10.5%, 40.4%)
CIE-LABlab(36.11, 60.90, -31.14)
CIE-LCHlch(36.11, 68.40, 332.92°)
OKLaboklab(47.56% 0.1773 -0.0854)
OKLCHoklch(47.56% 0.197 334.3)
XYZxyz(17.6994, 9.0674, 24.1058)
Luminance0.0907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981788 #179827
analogous
#681798 #981788 #981748
triadic
#981788 #889817 #178898
tetradic
#981788 #986817 #179827 #174898
square
#981788 #986817 #179827 #174898
split-complementary
#981788 #489817 #179868
monochromatic
#2E0729 #630F58 #981788 #CD1FB8 #E346D0

Accessibility & contrast

On white

7.46
#981788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#981788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981788
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981788#FFFFFF#000000##FFFFFF
##9817881.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498B
Deuteranopia (green-blind)
#495B85
Tritanopia (blue-blind)
#A02651
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981788;
/* rgb */ color: rgb(152, 23, 136);
/* oklch */ color: oklch(47.6% 0.197 334.3);
Tailwind
colors: {
  custom: {
    50: '#ba67ab',
    500: '#981788',
    950: '#000000',
  },
}
SCSS
$custom: #981788;
$custom-light: #ba67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#981788",
  "rgb": {
    "r": 152,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 307.442,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.47557,
    "c": 0.1968,
    "h": 334.3
  },
  "luminance": 0.09066
}

Semantic roles & 50–950 ramp

primary
#981788
secondary
#47C456
accent
#F04E37
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981788

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

Preview Lab → · Contrast checker → · Palette generator →

#981788 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva