#9B279A#9B279A

#9B279A is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.197 H 328.4°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9B279A
RGBrgb(155, 39, 154)
HSLhsl(301, 60%, 38%)
HSVhsv(301, 75%, 61%)
CMYKcmyk(0%, 74.8%, 0.6%, 39.2%)
CIE-LABlab(39.16, 60.00, -37.28)
CIE-LCHlch(39.16, 70.64, 328.14°)
OKLaboklab(50.16% 0.1679 -0.1033)
OKLCHoklch(50.16% 0.197 328.4)
XYZxyz(20.0756, 10.7542, 31.5840)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B279A #279B28
analogous
#62279B #9B279A #9B2760
triadic
#9B279A #9A9B27 #279A9B
tetradic
#9B279A #9B6227 #279B28 #27609B
square
#9B279A #9B6227 #279B28 #27609B
split-complementary
#9B279A #609B27 #279B62
monochromatic
#390E39 #6A1B69 #9B279A #CC33CA #D864D7

Accessibility & contrast

On white

6.67
#9B279A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9B279A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B279A
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B279A#FFFFFF#000000##FFFFFF
##9B279A1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10539D
Deuteranopia (green-blind)
#486197
Tritanopia (blue-blind)
#A0395F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b279a;
/* rgb */ color: rgb(155, 39, 154);
/* oklch */ color: oklch(50.2% 0.197 328.4);
Tailwind
colors: {
  custom: {
    50: '#bc6eb8',
    500: '#9b279a',
    950: '#000000',
  },
}
SCSS
$custom: #9b279a;
$custom-light: #bc6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b279a",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 300.517,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.50158,
    "c": 0.1971,
    "h": 328.4
  },
  "luminance": 0.10753
}

Semantic roles & 50–950 ramp

primary
#9B279A
secondary
#60BE61
accent
#E34645
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9B279A

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

Preview Lab → · Contrast checker → · Palette generator →

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