#9F308A#9F308A

#9F308A is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.7% C 0.177 H 336.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9F308A
RGBrgb(159, 48, 138)
HSLhsl(311, 54%, 41%)
HSVhsv(311, 70%, 62%)
CMYKcmyk(0%, 69.8%, 13.2%, 37.6%)
CIE-LABlab(40.12, 55.23, -26.00)
CIE-LCHlch(40.12, 61.04, 334.79°)
OKLaboklab(50.7% 0.162 -0.0707)
OKLCHoklch(50.7% 0.177 336.4)
XYZxyz(19.9428, 11.3216, 25.1748)
Luminance0.1132 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F308A #309F45
analogous
#7C309F #9F308A #9F3053
triadic
#9F308A #8A9F30 #308A9F
tetradic
#9F308A #9F7C30 #309F45 #30539F
square
#9F308A #9F7C30 #309F45 #30539F
split-complementary
#9F308A #539F30 #309F7C
monochromatic
#411438 #702261 #9F308A #C745AE #D574C3

Accessibility & contrast

On white

6.43
#9F308A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9F308A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F308A
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F308A#FFFFFF#000000##FFFFFF
##9F308A1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#576587
Tritanopia (blue-blind)
#A73759
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f308a;
/* rgb */ color: rgb(159, 48, 138);
/* oklch */ color: oklch(50.7% 0.177 336.4);
Tailwind
colors: {
  custom: {
    50: '#bf72ac',
    500: '#9f308a',
    950: '#000000',
  },
}
SCSS
$custom: #9f308a;
$custom-light: #bf72ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f308a",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 311.351,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50703,
    "c": 0.17674,
    "h": 336.4
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

primary
#9F308A
secondary
#6EBD7D
accent
#DD664B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F308A

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

Preview Lab → · Contrast checker → · Palette generator →

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