#98519F#98519F

#98519F is a mid, vivid purple. Relative luminance 0.151; OKLCH L 54.9% C 0.140 H 323.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#98519F
RGBrgb(152, 81, 159)
HSLhsl(295, 33%, 47%)
HSVhsv(295, 49%, 62%)
CMYKcmyk(4.4%, 49.1%, 0%, 37.6%)
CIE-LABlab(45.72, 41.64, -29.98)
CIE-LCHlch(45.72, 51.31, 324.25°)
OKLaboklab(54.93% 0.1131 -0.0825)
OKLCHoklch(54.93% 0.14 323.9)
XYZxyz(22.1487, 15.0645, 34.5352)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98519F #589F51
analogous
#71519F #98519F #9F517F
triadic
#98519F #9F9851 #519F98
tetradic
#98519F #9F7151 #589F51 #517F9F
square
#98519F #9F7151 #589F51 #517F9F
split-complementary
#98519F #7F9F51 #519F71
monochromatic
#4A284E #713C76 #98519F #B275B9 #C99DCD

Accessibility & contrast

On white

5.23
#98519F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#98519F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98519F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98519F#FFFFFF#000000##FFFFFF
##98519F1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4767A2
Deuteranopia (green-blind)
#5C6F9D
Tritanopia (blue-blind)
#9B5A71
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #98519f;
/* rgb */ color: rgb(152, 81, 159);
/* oklch */ color: oklch(54.9% 0.140 323.9);
Tailwind
colors: {
  custom: {
    50: '#b884bb',
    500: '#98519f',
    950: '#000000',
  },
}
SCSS
$custom: #98519f;
$custom-light: #b884bb;
$custom-dark: #000000;
JSON
{
  "hex": "#98519f",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 159
  },
  "hsl": {
    "h": 294.615,
    "s": 32.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5493,
    "c": 0.14,
    "h": 323.9
  },
  "luminance": 0.15063
}

Semantic roles & 50–950 ramp

primary
#98519F
secondary
#95BA92
accent
#C95F69
background
#FBF8FB
surface
#F6EFF6
border
#D0CAD0
text
#120B12
muted
#817C81

Preview Lab

Preview with #98519F

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

Preview Lab → · Contrast checker → · Palette generator →

#98519F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva