#9F2A78#9F2A78

#9F2A78 is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.3% C 0.172 H 344.4°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#9F2A78
RGBrgb(159, 42, 120)
HSLhsl(320, 58%, 39%)
HSVhsv(320, 74%, 62%)
CMYKcmyk(0%, 73.6%, 24.5%, 37.6%)
CIE-LABlab(38.52, 54.83, -17.35)
CIE-LCHlch(38.52, 57.51, 342.44°)
OKLaboklab(49.28% 0.1657 -0.0462)
OKLCHoklch(49.28% 0.172 344.4)
XYZxyz(18.5169, 10.3849, 18.7950)
Luminance0.1038 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A78 #2A9F51
analogous
#8C2A9F #9F2A78 #9F2A3E
triadic
#9F2A78 #789F2A #2A789F
tetradic
#9F2A78 #9F8C2A #2A9F51 #2A3E9F
square
#9F2A78 #9F8C2A #2A9F51 #2A3E9F
split-complementary
#9F2A78 #3E9F2A #2A9F8C
monochromatic
#3E102F #6F1D53 #9F2A78 #CB3B9B #D86BB4

Accessibility & contrast

On white

6.83
#9F2A78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9F2A78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A78
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A78#FFFFFF#000000##FFFFFF
##9F2A781.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374E7A
Deuteranopia (green-blind)
#5B6275
Tritanopia (blue-blind)
#AA294D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f2a78;
/* rgb */ color: rgb(159, 42, 120);
/* oklch */ color: oklch(49.3% 0.172 344.4);
Tailwind
colors: {
  custom: {
    50: '#bf6f9f',
    500: '#9f2a78',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a78;
$custom-light: #bf6f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a78",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 320,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4928,
    "c": 0.17199,
    "h": 344.4
  },
  "luminance": 0.10383
}

Semantic roles & 50–950 ramp

primary
#9F2A78
secondary
#66BF84
accent
#E17A46
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9F2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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