#9B2796#9B2796

#9B2796 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.194 H 329.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#9B2796
RGBrgb(155, 39, 150)
HSLhsl(303, 60%, 38%)
HSVhsv(303, 75%, 61%)
CMYKcmyk(0%, 74.8%, 3.2%, 39.2%)
CIE-LABlab(38.94, 59.34, -35.22)
CIE-LCHlch(38.94, 69.00, 329.31°)
OKLaboklab(49.92% 0.1679 -0.0973)
OKLCHoklch(49.92% 0.194 329.9)
XYZxyz(19.7480, 10.6231, 29.8586)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2796 #279B2C
analogous
#66279B #9B2796 #9B275C
triadic
#9B2796 #969B27 #27969B
tetradic
#9B2796 #9B6627 #279B2C #275C9B
square
#9B2796 #9B6627 #279B2C #275C9B
split-complementary
#9B2796 #5C9B27 #279B66
monochromatic
#390E37 #6A1B67 #9B2796 #CC33C5 #D864D3

Accessibility & contrast

On white

6.72
#9B2796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9B2796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2796
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2796#FFFFFF#000000##FFFFFF
##9B27961.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175299
Deuteranopia (green-blind)
#4A6193
Tritanopia (blue-blind)
#A1375D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b2796;
/* rgb */ color: rgb(155, 39, 150);
/* oklch */ color: oklch(49.9% 0.194 329.9);
Tailwind
colors: {
  custom: {
    50: '#bc6eb5',
    500: '#9b2796',
    950: '#000000',
  },
}
SCSS
$custom: #9b2796;
$custom-light: #bc6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2796",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 302.586,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49924,
    "c": 0.19401,
    "h": 329.9
  },
  "luminance": 0.10622
}

Semantic roles & 50–950 ramp

primary
#9B2796
secondary
#60BE64
accent
#E34C45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9B2796

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

Preview Lab → · Contrast checker → · Palette generator →

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