#9A279D#9A279D

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

Color values

HEX#9A279D
RGBrgb(154, 39, 157)
HSLhsl(298, 60%, 38%)
HSVhsv(298, 75%, 62%)
CMYKcmyk(1.9%, 75.2%, 0%, 38.4%)
CIE-LABlab(39.17, 60.28, -39.10)
CIE-LCHlch(39.17, 71.85, 327.03°)
OKLaboklab(50.18% 0.1668 -0.1086)
OKLCHoklch(50.18% 0.199 326.9)
XYZxyz(20.1374, 10.7568, 32.9074)
Luminance0.1076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A279D #2A9D27
analogous
#5F279D #9A279D #9D2765
triadic
#9A279D #9D9A27 #279D9A
tetradic
#9A279D #9D5F27 #2A9D27 #27659D
square
#9A279D #9D5F27 #2A9D27 #27659D
split-complementary
#9A279D #659D27 #279D5F
monochromatic
#3A0F3B #6A1B6C #9A279D #C935CD #D666D9

Accessibility & contrast

On white

6.66
#9A279D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9A279D
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A279D#FFFFFF#000000##FFFFFF
##9A279D1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0553A0
Deuteranopia (green-blind)
#45619A
Tritanopia (blue-blind)
#9E3B60
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9a279d;
/* rgb */ color: rgb(154, 39, 157);
/* oklch */ color: oklch(50.2% 0.199 326.9);
Tailwind
colors: {
  custom: {
    50: '#bb6eba',
    500: '#9a279d',
    950: '#000000',
  },
}
SCSS
$custom: #9a279d;
$custom-light: #bb6eba;
$custom-dark: #000000;
JSON
{
  "hex": "#9a279d",
  "rgb": {
    "r": 154,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 298.475,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50184,
    "c": 0.19898,
    "h": 326.9
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

primary
#9A279D
secondary
#63BF61
accent
#E34448
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9A279D

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

Preview Lab → · Contrast checker → · Palette generator →

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