#9F308E#9F308E

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

Color values

HEX#9F308E
RGBrgb(159, 48, 142)
HSLhsl(309, 54%, 41%)
HSVhsv(309, 70%, 62%)
CMYKcmyk(0%, 69.8%, 10.7%, 37.6%)
CIE-LABlab(40.31, 55.85, -28.14)
CIE-LCHlch(40.31, 62.54, 333.26°)
OKLaboklab(50.91% 0.1624 -0.0768)
OKLCHoklch(50.91% 0.18 334.7)
XYZxyz(20.2377, 11.4395, 26.7281)
Luminance0.1144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F308E #309F41
analogous
#78309F #9F308E #9F3056
triadic
#9F308E #8E9F30 #308E9F
tetradic
#9F308E #9F7830 #309F41 #30569F
square
#9F308E #9F7830 #309F41 #30569F
split-complementary
#9F308E #569F30 #309F78
monochromatic
#41143A #702264 #9F308E #C745B3 #D574C6

Accessibility & contrast

On white

6.39
#9F308E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F308E
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F308E#FFFFFF#000000##FFFFFF
##9F308E1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f308e;
/* rgb */ color: rgb(159, 48, 142);
/* oklch */ color: oklch(50.9% 0.180 334.7);
Tailwind
colors: {
  custom: {
    50: '#bf72af',
    500: '#9f308e',
    950: '#000000',
  },
}
SCSS
$custom: #9f308e;
$custom-light: #bf72af;
$custom-dark: #000000;
JSON
{
  "hex": "#9f308e",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 309.189,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50907,
    "c": 0.1797,
    "h": 334.7
  },
  "luminance": 0.11438
}

Semantic roles & 50–950 ramp

primary
#9F308E
secondary
#6EBD7A
accent
#DD614B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F308E

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

Preview Lab → · Contrast checker → · Palette generator →

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