#9F308C#9F308C

#9F308C is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.8% C 0.178 H 335.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9F308C
RGBrgb(159, 48, 140)
HSLhsl(310, 54%, 41%)
HSVhsv(310, 70%, 62%)
CMYKcmyk(0%, 69.8%, 11.9%, 37.6%)
CIE-LABlab(40.21, 55.54, -27.07)
CIE-LCHlch(40.21, 61.78, 334.01°)
OKLaboklab(50.8% 0.1622 -0.0738)
OKLCHoklch(50.8% 0.178 335.5)
XYZxyz(20.0889, 11.3800, 25.9444)
Luminance0.1138 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F308C #309F43
analogous
#7A309F #9F308C #9F3055
triadic
#9F308C #8C9F30 #308C9F
tetradic
#9F308C #9F7A30 #309F43 #30559F
square
#9F308C #9F7A30 #309F43 #30559F
split-complementary
#9F308C #559F30 #309F7A
monochromatic
#411439 #702263 #9F308C #C745B1 #D574C5

Accessibility & contrast

On white

6.41
#9F308C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9F308C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F308C
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F308C#FFFFFF#000000##FFFFFF
##9F308C1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548F
Deuteranopia (green-blind)
#566589
Tritanopia (blue-blind)
#A7385A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f308c;
/* rgb */ color: rgb(159, 48, 140);
/* oklch */ color: oklch(50.8% 0.178 335.5);
Tailwind
colors: {
  custom: {
    50: '#bf72ae',
    500: '#9f308c',
    950: '#000000',
  },
}
SCSS
$custom: #9f308c;
$custom-light: #bf72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f308c",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 310.27,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50804,
    "c": 0.17821,
    "h": 335.5
  },
  "luminance": 0.11378
}

Semantic roles & 50–950 ramp

primary
#9F308C
secondary
#6EBD7B
accent
#DD644B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F308C

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

Preview Lab → · Contrast checker → · Palette generator →

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