#98339B#98339B

#98339B is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.9% C 0.182 H 326.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#98339B
RGBrgb(152, 51, 155)
HSLhsl(298, 50%, 40%)
HSVhsv(298, 67%, 61%)
CMYKcmyk(1.9%, 67.1%, 0%, 39.2%)
CIE-LABlab(40.26, 55.12, -36.17)
CIE-LCHlch(40.26, 65.93, 326.72°)
OKLaboklab(50.87% 0.1523 -0.1002)
OKLCHoklch(50.87% 0.182 326.7)
XYZxyz(20.0488, 11.4109, 32.1505)
Luminance0.1141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98339B #369B33
analogous
#64339B #98339B #9B336A
triadic
#98339B #9B9833 #339B98
tetradic
#98339B #9B6433 #369B33 #336A9B
square
#98339B #9B6433 #369B33 #336A9B
split-complementary
#98339B #6A9B33 #339B64
monochromatic
#3E153F #6B246D #98339B #BF48C3 #CF76D2

Accessibility & contrast

On white

6.40
#98339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#98339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98339B
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98339B#FFFFFF#000000##FFFFFF
##98339B1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21579E
Deuteranopia (green-blind)
#4A6398
Tritanopia (blue-blind)
#9C4263
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #98339b;
/* rgb */ color: rgb(152, 51, 155);
/* oklch */ color: oklch(50.9% 0.182 326.7);
Tailwind
colors: {
  custom: {
    50: '#b973b9',
    500: '#98339b',
    950: '#000000',
  },
}
SCSS
$custom: #98339b;
$custom-light: #b973b9;
$custom-dark: #000000;
JSON
{
  "hex": "#98339b",
  "rgb": {
    "r": 152,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 298.269,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5087,
    "c": 0.18229,
    "h": 326.7
  },
  "luminance": 0.1141
}

Semantic roles & 50–950 ramp

primary
#98339B
secondary
#72BA6F
accent
#DA4E52
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #98339B

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

Preview Lab → · Contrast checker → · Palette generator →

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