#982398#982398

#982398 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.3% C 0.198 H 328.1°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#982398
RGBrgb(152, 35, 152)
HSLhsl(300, 63%, 37%)
HSVhsv(300, 77%, 60%)
CMYKcmyk(0%, 77%, 0%, 40.4%)
CIE-LABlab(38.10, 60.26, -37.79)
CIE-LCHlch(38.10, 71.13, 327.91°)
OKLaboklab(49.27% 0.1682 -0.1048)
OKLCHoklch(49.27% 0.198 328.1)
XYZxyz(19.2172, 10.1459, 30.6459)
Luminance0.1014 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982398 #239823
analogous
#5E2398 #982398 #98235E
triadic
#982398 #989823 #239898
tetradic
#982398 #985E23 #239823 #235E98
square
#982398 #985E23 #239823 #235E98
split-complementary
#982398 #5E9823 #23985E
monochromatic
#350C35 #661866 #982398 #CA2ECA #D95CD9

Accessibility & contrast

On white

6.93
#982398 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#982398 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #982398
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982398#FFFFFF#000000##FFFFFF
##9823981.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04509B
Deuteranopia (green-blind)
#445F95
Tritanopia (blue-blind)
#9D365D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #982398;
/* rgb */ color: rgb(152, 35, 152);
/* oklch */ color: oklch(49.3% 0.198 328.1);
Tailwind
colors: {
  custom: {
    50: '#ba6cb7',
    500: '#982398',
    950: '#000000',
  },
}
SCSS
$custom: #982398;
$custom-light: #ba6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#982398",
  "rgb": {
    "r": 152,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 300,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.49266,
    "c": 0.19816,
    "h": 328.1
  },
  "luminance": 0.10144
}

Semantic roles & 50–950 ramp

primary
#982398
secondary
#59BE59
accent
#E64242
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #982398

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

Preview Lab → · Contrast checker → · Palette generator →

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