#98319E#98319E

#98319E is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.187 H 325.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#98319E
RGBrgb(152, 49, 158)
HSLhsl(297, 53%, 41%)
HSVhsv(297, 69%, 62%)
CMYKcmyk(3.8%, 69%, 0%, 38%)
CIE-LABlab(40.15, 56.45, -38.16)
CIE-LCHlch(40.15, 68.13, 325.94°)
OKLaboklab(50.84% 0.1545 -0.106)
OKLCHoklch(50.84% 0.187 325.6)
XYZxyz(20.2183, 11.3419, 33.4654)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98319E #379E31
analogous
#61319E #98319E #9E316D
triadic
#98319E #9E9831 #319E98
tetradic
#98319E #9E6131 #379E31 #316D9E
square
#98319E #9E6131 #379E31 #316D9E
split-complementary
#98319E #6D9E31 #319E61
monochromatic
#3E1441 #6B236F #98319E #BF46C6 #CF75D4

Accessibility & contrast

On white

6.43
#98319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#98319E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98319E
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98319E#FFFFFF#000000##FFFFFF
##98319E1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A56A1
Deuteranopia (green-blind)
#47639B
Tritanopia (blue-blind)
#9C4264
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #98319e;
/* rgb */ color: rgb(152, 49, 158);
/* oklch */ color: oklch(50.8% 0.187 325.6);
Tailwind
colors: {
  custom: {
    50: '#ba72bb',
    500: '#98319e',
    950: '#000000',
  },
}
SCSS
$custom: #98319e;
$custom-light: #ba72bb;
$custom-dark: #000000;
JSON
{
  "hex": "#98319e",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 296.697,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50843,
    "c": 0.18738,
    "h": 325.6
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#98319E
secondary
#73BC6E
accent
#DC4C54
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #98319E

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

Preview Lab → · Contrast checker → · Palette generator →

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