#9F308B#9F308B

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

Color values

HEX#9F308B
RGBrgb(159, 48, 139)
HSLhsl(311, 54%, 41%)
HSVhsv(311, 70%, 62%)
CMYKcmyk(0%, 69.8%, 12.6%, 37.6%)
CIE-LABlab(40.16, 55.38, -26.54)
CIE-LCHlch(40.16, 61.41, 334.40°)
OKLaboklab(50.75% 0.1621 -0.0723)
OKLCHoklch(50.75% 0.177 336)
XYZxyz(20.0155, 11.3507, 25.5578)
Luminance0.1135 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F308B #309F44
analogous
#7B309F #9F308B #9F3053
triadic
#9F308B #8B9F30 #308B9F
tetradic
#9F308B #9F7B30 #309F44 #30539F
square
#9F308B #9F7B30 #309F44 #30539F
split-complementary
#9F308B #539F30 #309F7B
monochromatic
#411439 #702262 #9F308B #C745B0 #D574C4

Accessibility & contrast

On white

6.42
#9F308B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9F308B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F308B
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F308B#FFFFFF#000000##FFFFFF
##9F308B1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548E
Deuteranopia (green-blind)
#566588
Tritanopia (blue-blind)
#A73759
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f308b;
/* rgb */ color: rgb(159, 48, 139);
/* oklch */ color: oklch(50.8% 0.177 336.0);
Tailwind
colors: {
  custom: {
    50: '#bf72ad',
    500: '#9f308b',
    950: '#000000',
  },
}
SCSS
$custom: #9f308b;
$custom-light: #bf72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f308b",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 310.811,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50754,
    "c": 0.17748,
    "h": 336
  },
  "luminance": 0.11349
}

Semantic roles & 50–950 ramp

primary
#9F308B
secondary
#6EBD7C
accent
#DD654B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F308B

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

Preview Lab → · Contrast checker → · Palette generator →

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