#98198C#98198C

#98198C is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.198 H 332.7°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#98198C
RGBrgb(152, 25, 140)
HSLhsl(306, 72%, 35%)
HSVhsv(306, 84%, 60%)
CMYKcmyk(0%, 83.6%, 7.9%, 40.4%)
CIE-LABlab(36.49, 61.04, -33.01)
CIE-LCHlch(36.49, 69.39, 331.60°)
OKLaboklab(47.9% 0.176 -0.0909)
OKLCHoklch(47.9% 0.198 332.7)
XYZxyz(18.0303, 9.2657, 25.6447)
Luminance0.0926 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98198C #199825
analogous
#641998 #98198C #98194D
triadic
#98198C #8C9819 #198C98
tetradic
#98198C #986419 #199825 #194D98
square
#98198C #986419 #199825 #194D98
split-complementary
#98198C #4D9819 #199864
monochromatic
#2F082B #63105C #98198C #CD22BC #E14AD3

Accessibility & contrast

On white

7.36
#98198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#98198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98198C
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98198C#FFFFFF#000000##FFFFFF
##98198C1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B8F
Deuteranopia (green-blind)
#485C89
Tritanopia (blue-blind)
#9F2A54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98198c;
/* rgb */ color: rgb(152, 25, 140);
/* oklch */ color: oklch(47.9% 0.198 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba68ae',
    500: '#98198c',
    950: '#000000',
  },
}
SCSS
$custom: #98198c;
$custom-light: #ba68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#98198c",
  "rgb": {
    "r": 152,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 305.669,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47897,
    "c": 0.19809,
    "h": 332.7
  },
  "luminance": 0.09264
}

Semantic roles & 50–950 ramp

primary
#98198C
secondary
#4AC355
accent
#EE4A39
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98198C

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

Preview Lab → · Contrast checker → · Palette generator →

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