#98319B#98319B

#98319B is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.185 H 326.7°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#98319B
RGBrgb(152, 49, 155)
HSLhsl(298, 52%, 40%)
HSVhsv(298, 68%, 61%)
CMYKcmyk(1.9%, 68.4%, 0%, 39.2%)
CIE-LABlab(39.98, 55.91, -36.62)
CIE-LCHlch(39.98, 66.84, 326.78°)
OKLaboklab(50.67% 0.1545 -0.1015)
OKLCHoklch(50.67% 0.185 326.7)
XYZxyz(19.9633, 11.2399, 32.1220)
Luminance0.1124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98319B #349B31
analogous
#63319B #98319B #9B3169
triadic
#98319B #9B9831 #319B98
tetradic
#98319B #9B6331 #349B31 #31699B
square
#98319B #9B6331 #349B31 #31699B
split-complementary
#98319B #699B31 #319B63
monochromatic
#3D143E #6A226D #98319B #C145C4 #D073D3

Accessibility & contrast

On white

6.47
#98319B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#98319B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98319B
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98319B#FFFFFF#000000##FFFFFF
##98319B1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E569E
Deuteranopia (green-blind)
#496398
Tritanopia (blue-blind)
#9C4162
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #98319b;
/* rgb */ color: rgb(152, 49, 155);
/* oklch */ color: oklch(50.7% 0.185 326.7);
Tailwind
colors: {
  custom: {
    50: '#ba72b9',
    500: '#98319b',
    950: '#000000',
  },
}
SCSS
$custom: #98319b;
$custom-light: #ba72b9;
$custom-dark: #000000;
JSON
{
  "hex": "#98319b",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 298.302,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.50667,
    "c": 0.18484,
    "h": 326.7
  },
  "luminance": 0.11239
}

Semantic roles & 50–950 ramp

primary
#98319B
secondary
#6FBB6D
accent
#DB4C50
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #98319B

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

Preview Lab → · Contrast checker → · Palette generator →

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