#9F308F#9F308F

#9F308F is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.180 H 334.3°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9F308F
RGBrgb(159, 48, 143)
HSLhsl(309, 54%, 41%)
HSVhsv(309, 70%, 62%)
CMYKcmyk(0%, 69.8%, 10.1%, 37.6%)
CIE-LABlab(40.36, 56.01, -28.67)
CIE-LCHlch(40.36, 62.92, 332.89°)
OKLaboklab(50.96% 0.1625 -0.0784)
OKLCHoklch(50.96% 0.18 334.3)
XYZxyz(20.3131, 11.4697, 27.1253)
Luminance0.1147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F308F #309F40
analogous
#77309F #9F308F #9F3057
triadic
#9F308F #8F9F30 #308F9F
tetradic
#9F308F #9F7730 #309F40 #30579F
square
#9F308F #9F7730 #309F40 #30579F
split-complementary
#9F308F #579F30 #309F77
monochromatic
#41143A #702265 #9F308F #C745B4 #D574C7

Accessibility & contrast

On white

6.38
#9F308F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9F308F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F308F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F308F#FFFFFF#000000##FFFFFF
##9F308F1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5592
Deuteranopia (green-blind)
#55658C
Tritanopia (blue-blind)
#A7395B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f308f;
/* rgb */ color: rgb(159, 48, 143);
/* oklch */ color: oklch(51.0% 0.180 334.3);
Tailwind
colors: {
  custom: {
    50: '#bf72b0',
    500: '#9f308f',
    950: '#000000',
  },
}
SCSS
$custom: #9f308f;
$custom-light: #bf72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f308f",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 308.649,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50959,
    "c": 0.18045,
    "h": 334.3
  },
  "luminance": 0.11468
}

Semantic roles & 50–950 ramp

primary
#9F308F
secondary
#6EBD79
accent
#DD604B
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130910
muted
#827B7F

Preview Lab

Preview with #9F308F

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

Preview Lab → · Contrast checker → · Palette generator →

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