#9B2797#9B2797

#9B2797 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.195 H 329.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9B2797
RGBrgb(155, 39, 151)
HSLhsl(302, 60%, 38%)
HSVhsv(302, 75%, 61%)
CMYKcmyk(0%, 74.8%, 2.6%, 39.2%)
CIE-LABlab(38.99, 59.50, -35.73)
CIE-LCHlch(38.99, 69.41, 329.01°)
OKLaboklab(49.98% 0.1679 -0.0988)
OKLCHoklch(49.98% 0.195 329.5)
XYZxyz(19.8289, 10.6555, 30.2845)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2797 #279B2B
analogous
#65279B #9B2797 #9B275D
triadic
#9B2797 #979B27 #27979B
tetradic
#9B2797 #9B6527 #279B2B #275D9B
square
#9B2797 #9B6527 #279B2B #275D9B
split-complementary
#9B2797 #5D9B27 #279B65
monochromatic
#390E38 #6A1B67 #9B2797 #CC33C7 #D864D4

Accessibility & contrast

On white

6.71
#9B2797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9B2797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2797
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2797#FFFFFF#000000##FFFFFF
##9B27971.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16529A
Deuteranopia (green-blind)
#496194
Tritanopia (blue-blind)
#A1375D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b2797;
/* rgb */ color: rgb(155, 39, 151);
/* oklch */ color: oklch(50.0% 0.195 329.5);
Tailwind
colors: {
  custom: {
    50: '#bc6eb6',
    500: '#9b2797',
    950: '#000000',
  },
}
SCSS
$custom: #9b2797;
$custom-light: #bc6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2797",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 302.069,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49982,
    "c": 0.19479,
    "h": 329.5
  },
  "luminance": 0.10654
}

Semantic roles & 50–950 ramp

primary
#9B2797
secondary
#60BE63
accent
#E34A45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9B2797

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

Preview Lab → · Contrast checker → · Palette generator →

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