#98338F#98338F

#98338F is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.2% C 0.172 H 331.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#98338F
RGBrgb(152, 51, 143)
HSLhsl(305, 50%, 40%)
HSVhsv(305, 66%, 60%)
CMYKcmyk(0%, 66.4%, 5.9%, 40.4%)
CIE-LABlab(39.63, 53.05, -29.90)
CIE-LCHlch(39.63, 60.89, 330.59°)
OKLaboklab(50.2% 0.1515 -0.0821)
OKLCHoklch(50.2% 0.172 331.6)
XYZxyz(19.0906, 11.0277, 27.1043)
Luminance0.1103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98338F #33983C
analogous
#6F3398 #98338F #98335C
triadic
#98338F #8F9833 #338F98
tetradic
#98338F #986F33 #33983C #335C98
square
#98338F #986F33 #33983C #335C98
split-complementary
#98338F #5C9833 #33986F
monochromatic
#3C1439 #6A2464 #98338F #C147B6 #D175C8

Accessibility & contrast

On white

6.55
#98338F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#98338F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98338F
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98338F#FFFFFF#000000##FFFFFF
##98338F1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5492
Deuteranopia (green-blind)
#50628C
Tritanopia (blue-blind)
#9E3D5C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #98338f;
/* rgb */ color: rgb(152, 51, 143);
/* oklch */ color: oklch(50.2% 0.172 331.6);
Tailwind
colors: {
  custom: {
    50: '#b973b0',
    500: '#98338f',
    950: '#000000',
  },
}
SCSS
$custom: #98338f;
$custom-light: #b973b0;
$custom-dark: #000000;
JSON
{
  "hex": "#98338f",
  "rgb": {
    "r": 152,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 305.347,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50203,
    "c": 0.17233,
    "h": 331.6
  },
  "luminance": 0.11026
}

Semantic roles & 50–950 ramp

primary
#98338F
secondary
#6EB975
accent
#D95B4F
background
#FBF7FA
surface
#F7EDF5
border
#D0C8CF
text
#120810
muted
#817B7F

Preview Lab

Preview with #98338F

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

Preview Lab → · Contrast checker → · Palette generator →

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