#9F308D#9F308D

#9F308D is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.9% C 0.179 H 335.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9F308D
RGBrgb(159, 48, 141)
HSLhsl(310, 54%, 41%)
HSVhsv(310, 70%, 62%)
CMYKcmyk(0%, 69.8%, 11.3%, 37.6%)
CIE-LABlab(40.26, 55.69, -27.61)
CIE-LCHlch(40.26, 62.16, 333.63°)
OKLaboklab(50.86% 0.1623 -0.0753)
OKLCHoklch(50.86% 0.179 335.1)
XYZxyz(20.1630, 11.4096, 26.3345)
Luminance0.1141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F308D #309F42
analogous
#79309F #9F308D #9F3055
triadic
#9F308D #8D9F30 #308D9F
tetradic
#9F308D #9F7930 #309F42 #30559F
square
#9F308D #9F7930 #309F42 #30559F
split-complementary
#9F308D #559F30 #309F79
monochromatic
#41143A #702263 #9F308D #C745B2 #D574C5

Accessibility & contrast

On white

6.40
#9F308D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F308D
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F308D#FFFFFF#000000##FFFFFF
##9F308D1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305490
Deuteranopia (green-blind)
#56658A
Tritanopia (blue-blind)
#A7385A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f308d;
/* rgb */ color: rgb(159, 48, 141);
/* oklch */ color: oklch(50.9% 0.179 335.1);
Tailwind
colors: {
  custom: {
    50: '#bf72ae',
    500: '#9f308d',
    950: '#000000',
  },
}
SCSS
$custom: #9f308d;
$custom-light: #bf72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f308d",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 309.73,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50856,
    "c": 0.17895,
    "h": 335.1
  },
  "luminance": 0.11408
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F308D

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

Preview Lab → · Contrast checker → · Palette generator →

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