#9A278E#9A278E

#9A278E is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.187 H 332.7°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9A278E
RGBrgb(154, 39, 142)
HSLhsl(306, 60%, 38%)
HSVhsv(306, 75%, 60%)
CMYKcmyk(0%, 74.7%, 7.8%, 39.6%)
CIE-LABlab(38.33, 57.83, -31.31)
CIE-LCHlch(38.33, 65.76, 331.57°)
OKLaboklab(49.32% 0.1665 -0.086)
OKLCHoklch(49.32% 0.187 332.7)
XYZxyz(18.9345, 10.2756, 26.5721)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A278E #279A33
analogous
#6C279A #9A278E #9A2754
triadic
#9A278E #8E9A27 #278E9A
tetradic
#9A278E #9A6C27 #279A33 #27549A
square
#9A278E #9A6C27 #279A33 #27549A
split-complementary
#9A278E #549A27 #279A6C
monochromatic
#380E34 #691B61 #9A278E #CB33BB #D864CC

Accessibility & contrast

On white

6.87
#9A278E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9A278E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A278E
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A278E#FFFFFF#000000##FFFFFF
##9A278E1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#4D608B
Tritanopia (blue-blind)
#A13358
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9a278e;
/* rgb */ color: rgb(154, 39, 142);
/* oklch */ color: oklch(49.3% 0.187 332.7);
Tailwind
colors: {
  custom: {
    50: '#bb6daf',
    500: '#9a278e',
    950: '#000000',
  },
}
SCSS
$custom: #9a278e;
$custom-light: #bb6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a278e",
  "rgb": {
    "r": 154,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 306.261,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49316,
    "c": 0.18743,
    "h": 332.7
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#9A278E
secondary
#5FBD69
accent
#E35645
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A278E

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

Preview Lab → · Contrast checker → · Palette generator →

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