#982187#982187

#982187 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.187 H 334.8°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#982187
RGBrgb(152, 33, 135)
HSLhsl(309, 64%, 36%)
HSVhsv(309, 78%, 60%)
CMYKcmyk(0%, 78.3%, 11.2%, 40.4%)
CIE-LABlab(36.96, 58.16, -29.19)
CIE-LCHlch(36.96, 65.08, 333.35°)
OKLaboklab(48.14% 0.1696 -0.0799)
OKLCHoklch(48.14% 0.187 334.8)
XYZxyz(17.8661, 9.5140, 23.8124)
Luminance0.0951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982187 #219832
analogous
#6E2198 #982187 #98214C
triadic
#982187 #879821 #218798
tetradic
#982187 #986E21 #219832 #214C98
square
#982187 #986E21 #219832 #214C98
split-complementary
#982187 #4C9821 #21986E
monochromatic
#330B2E #66165A #982187 #CA2CB4 #DB59C8

Accessibility & contrast

On white

7.24
#982187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#982187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982187
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982187#FFFFFF#000000##FFFFFF
##9821871.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C8A
Deuteranopia (green-blind)
#4C5D84
Tritanopia (blue-blind)
#A02C53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #982187;
/* rgb */ color: rgb(152, 33, 135);
/* oklch */ color: oklch(48.1% 0.187 334.8);
Tailwind
colors: {
  custom: {
    50: '#ba6baa',
    500: '#982187',
    950: '#000000',
  },
}
SCSS
$custom: #982187;
$custom-light: #ba6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#982187",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 308.571,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48142,
    "c": 0.18748,
    "h": 334.8
  },
  "luminance": 0.09512
}

Semantic roles & 50–950 ramp

primary
#982187
secondary
#56BF65
accent
#E75840
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #982187

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

Preview Lab → · Contrast checker → · Palette generator →

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