#9B2F97#9B2F97

#9B2F97 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.186 H 329.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#9B2F97
RGBrgb(155, 47, 151)
HSLhsl(302, 53%, 40%)
HSVhsv(302, 70%, 61%)
CMYKcmyk(0%, 69.7%, 2.6%, 39.2%)
CIE-LABlab(39.98, 56.71, -34.18)
CIE-LCHlch(39.98, 66.21, 328.92°)
OKLaboklab(50.69% 0.1599 -0.0943)
OKLCHoklch(50.69% 0.186 329.5)
XYZxyz(20.1198, 11.2374, 30.3815)
Luminance0.1124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2F97 #2F9B33
analogous
#692F9B #9B2F97 #9B2F61
triadic
#9B2F97 #979B2F #2F979B
tetradic
#9B2F97 #9B692F #2F9B33 #2F619B
square
#9B2F97 #9B692F #2F9B33 #2F619B
split-complementary
#9B2F97 #619B2F #2F9B69
monochromatic
#3D133C #6C2169 #9B2F97 #C642C1 #D471D0

Accessibility & contrast

On white

6.47
#9B2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9B2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2F97
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2F97#FFFFFF#000000##FFFFFF
##9B2F971.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#4D6394
Tritanopia (blue-blind)
#A13D5F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9b2f97;
/* rgb */ color: rgb(155, 47, 151);
/* oklch */ color: oklch(50.7% 0.186 329.5);
Tailwind
colors: {
  custom: {
    50: '#bc71b6',
    500: '#9b2f97',
    950: '#000000',
  },
}
SCSS
$custom: #9b2f97;
$custom-light: #bc71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2f97",
  "rgb": {
    "r": 155,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 302.222,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50688,
    "c": 0.18564,
    "h": 329.5
  },
  "luminance": 0.11236
}

Semantic roles & 50–950 ramp

primary
#9B2F97
secondary
#6ABB6D
accent
#DD504B
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9B2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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