#98198E#98198E

#98198E is a mid, vivid purple. Relative luminance 0.093; OKLCH L 48.0% C 0.200 H 331.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#98198E
RGBrgb(152, 25, 142)
HSLhsl(305, 72%, 35%)
HSVhsv(305, 84%, 60%)
CMYKcmyk(0%, 83.6%, 6.6%, 40.4%)
CIE-LABlab(36.60, 61.34, -34.06)
CIE-LCHlch(36.60, 70.17, 330.96°)
OKLaboklab(48.01% 0.176 -0.0939)
OKLCHoklch(48.01% 0.2 331.9)
XYZxyz(18.1791, 9.3252, 26.4284)
Luminance0.0932 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98198E #199823
analogous
#621998 #98198E #98194F
triadic
#98198E #8E9819 #198E98
tetradic
#98198E #986219 #199823 #194F98
square
#98198E #986219 #199823 #194F98
split-complementary
#98198E #4F9819 #199862
monochromatic
#2F082C #63105D #98198E #CD22BF #E14AD5

Accessibility & contrast

On white

7.33
#98198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#98198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98198E
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98198E#FFFFFF#000000##FFFFFF
##98198E1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094B91
Deuteranopia (green-blind)
#465C8B
Tritanopia (blue-blind)
#9F2B55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98198e;
/* rgb */ color: rgb(152, 25, 142);
/* oklch */ color: oklch(48.0% 0.200 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba68af',
    500: '#98198e',
    950: '#000000',
  },
}
SCSS
$custom: #98198e;
$custom-light: #ba68af;
$custom-dark: #000000;
JSON
{
  "hex": "#98198e",
  "rgb": {
    "r": 152,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 304.724,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.48013,
    "c": 0.1995,
    "h": 331.9
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

primary
#98198E
secondary
#4AC353
accent
#EE4839
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98198E

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

Preview Lab → · Contrast checker → · Palette generator →

#98198E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva