#9B2D98#9B2D98

#9B2D98 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.189 H 329.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#9B2D98
RGBrgb(155, 45, 152)
HSLhsl(302, 55%, 39%)
HSVhsv(302, 71%, 61%)
CMYKcmyk(0%, 71%, 1.9%, 39.2%)
CIE-LABlab(39.77, 57.61, -35.11)
CIE-LCHlch(39.77, 67.47, 328.64°)
OKLaboklab(50.56% 0.162 -0.097)
OKLCHoklch(50.56% 0.189 329.1)
XYZxyz(20.1233, 11.1138, 30.7850)
Luminance0.1111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2D98 #2D9B30
analogous
#672D9B #9B2D98 #9B2D61
triadic
#9B2D98 #989B2D #2D989B
tetradic
#9B2D98 #9B672D #2D9B30 #2D619B
square
#9B2D98 #9B672D #2D9B30 #2D619B
split-complementary
#9B2D98 #619B2D #2D9B67
monochromatic
#3C113B #6C1F69 #9B2D98 #C73EC3 #D56ED2

Accessibility & contrast

On white

6.52
#9B2D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9B2D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2D98
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2D98#FFFFFF#000000##FFFFFF
##9B2D981.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549B
Deuteranopia (green-blind)
#4C6395
Tritanopia (blue-blind)
#A03C5F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9b2d98;
/* rgb */ color: rgb(155, 45, 152);
/* oklch */ color: oklch(50.6% 0.189 329.1);
Tailwind
colors: {
  custom: {
    50: '#bc71b7',
    500: '#9b2d98',
    950: '#000000',
  },
}
SCSS
$custom: #9b2d98;
$custom-light: #bc71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2d98",
  "rgb": {
    "r": 155,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 301.636,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50558,
    "c": 0.18885,
    "h": 329.1
  },
  "luminance": 0.11112
}

Semantic roles & 50–950 ramp

primary
#9B2D98
secondary
#68BC6A
accent
#DE4E49
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9B2D98

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

Preview Lab → · Contrast checker → · Palette generator →

#9B2D98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva