#98198D#98198D

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

Color values

HEX#98198D
RGBrgb(152, 25, 141)
HSLhsl(305, 72%, 35%)
HSVhsv(305, 84%, 60%)
CMYKcmyk(0%, 83.6%, 7.2%, 40.4%)
CIE-LABlab(36.55, 61.19, -33.54)
CIE-LCHlch(36.55, 69.78, 331.27°)
OKLaboklab(47.96% 0.176 -0.0924)
OKLCHoklch(47.96% 0.199 332.3)
XYZxyz(18.1043, 9.2953, 26.0348)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98198D #199824
analogous
#641998 #98198D #98194E
triadic
#98198D #8D9819 #198D98
tetradic
#98198D #986419 #199824 #194E98
square
#98198D #986419 #199824 #194E98
split-complementary
#98198D #4E9819 #199864
monochromatic
#2F082B #63105C #98198D #CD22BE #E14AD4

Accessibility & contrast

On white

7.35
#98198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #98198D
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98198D#FFFFFF#000000##FFFFFF
##98198D1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#475C8A
Tritanopia (blue-blind)
#9F2B54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98198d;
/* rgb */ color: rgb(152, 25, 141);
/* oklch */ color: oklch(48.0% 0.199 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba68af',
    500: '#98198d',
    950: '#000000',
  },
}
SCSS
$custom: #98198d;
$custom-light: #ba68af;
$custom-dark: #000000;
JSON
{
  "hex": "#98198d",
  "rgb": {
    "r": 152,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 305.197,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47955,
    "c": 0.19879,
    "h": 332.3
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#98198D
secondary
#4AC354
accent
#EE4939
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98198D

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

Preview Lab → · Contrast checker → · Palette generator →

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