#98178B#98178B

#98178B is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.199 H 333.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#98178B
RGBrgb(152, 23, 139)
HSLhsl(306, 74%, 34%)
HSVhsv(306, 85%, 60%)
CMYKcmyk(0%, 84.9%, 8.6%, 40.4%)
CIE-LABlab(36.28, 61.34, -32.73)
CIE-LCHlch(36.28, 69.53, 331.92°)
OKLaboklab(47.73% 0.1773 -0.09)
OKLCHoklch(47.73% 0.199 333.1)
XYZxyz(17.9156, 9.1539, 25.2444)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98178B #179824
analogous
#651798 #98178B #98174A
triadic
#98178B #8B9817 #178B98
tetradic
#98178B #986517 #179824 #174A98
square
#98178B #986517 #179824 #174A98
split-complementary
#98178B #4A9817 #179865
monochromatic
#2E072A #630F5A #98178B #CD1FBC #E346D3

Accessibility & contrast

On white

7.42
#98178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#98178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98178B
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98178B#FFFFFF#000000##FFFFFF
##98178B1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8E
Deuteranopia (green-blind)
#475C88
Tritanopia (blue-blind)
#9F2853
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #98178b;
/* rgb */ color: rgb(152, 23, 139);
/* oklch */ color: oklch(47.7% 0.199 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba68ad',
    500: '#98178b',
    950: '#000000',
  },
}
SCSS
$custom: #98178b;
$custom-light: #ba68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#98178b",
  "rgb": {
    "r": 152,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 306.047,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.47728,
    "c": 0.19889,
    "h": 333.1
  },
  "luminance": 0.09152
}

Semantic roles & 50–950 ramp

primary
#98178B
secondary
#47C453
accent
#F04A37
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98178B

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

Preview Lab → · Contrast checker → · Palette generator →

#98178B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva