#9B2A97#9B2A97

#9B2A97 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.2% C 0.192 H 329.5°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9B2A97
RGBrgb(155, 42, 151)
HSLhsl(302, 57%, 39%)
HSVhsv(302, 73%, 61%)
CMYKcmyk(0%, 72.9%, 2.6%, 39.2%)
CIE-LABlab(39.34, 58.50, -35.18)
CIE-LCHlch(39.34, 68.26, 328.98°)
OKLaboklab(50.23% 0.165 -0.0972)
OKLCHoklch(50.23% 0.192 329.5)
XYZxyz(19.9313, 10.8604, 30.3187)
Luminance0.1086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2A97 #2A9B2E
analogous
#662A9B #9B2A97 #9B2A5E
triadic
#9B2A97 #979B2A #2A979B
tetradic
#9B2A97 #9B662A #2A9B2E #2A5E9B
square
#9B2A97 #9B662A #2A9B2E #2A5E9B
split-complementary
#9B2A97 #5E9B2A #2A9B66
monochromatic
#3B1039 #6B1D68 #9B2A97 #C939C4 #D669D2

Accessibility & contrast

On white

6.62
#9B2A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9B2A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2A97
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2A97#FFFFFF#000000##FFFFFF
##9B2A971.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B539A
Deuteranopia (green-blind)
#4B6294
Tritanopia (blue-blind)
#A1395E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9b2a97;
/* rgb */ color: rgb(155, 42, 151);
/* oklch */ color: oklch(50.2% 0.192 329.5);
Tailwind
colors: {
  custom: {
    50: '#bc6fb6',
    500: '#9b2a97',
    950: '#000000',
  },
}
SCSS
$custom: #9b2a97;
$custom-light: #bc6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2a97",
  "rgb": {
    "r": 155,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 302.124,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50233,
    "c": 0.19152,
    "h": 329.5
  },
  "luminance": 0.10859
}

Semantic roles & 50–950 ramp

primary
#9B2A97
secondary
#64BD67
accent
#E14D47
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9B2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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