#9F2C8C#9F2C8C

#9F2C8C is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.4% C 0.183 H 335.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9F2C8C
RGBrgb(159, 44, 140)
HSLhsl(310, 57%, 40%)
HSVhsv(310, 72%, 62%)
CMYKcmyk(0%, 72.3%, 11.9%, 37.6%)
CIE-LABlab(39.69, 57.00, -27.88)
CIE-LCHlch(39.69, 63.46, 333.93°)
OKLaboklab(50.43% 0.1666 -0.0761)
OKLCHoklch(50.43% 0.183 335.4)
XYZxyz(19.9326, 11.0675, 25.8923)
Luminance0.1107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2C8C #2C9F3F
analogous
#792C9F #9F2C8C #9F2C53
triadic
#9F2C8C #8C9F2C #2C8C9F
tetradic
#9F2C8C #9F792C #2C9F3F #2C539F
square
#9F2C8C #9F792C #2C9F3F #2C539F
split-complementary
#9F2C8C #539F2C #2C9F79
monochromatic
#3F1138 #6F1F62 #9F2C8C #CA3EB3 #D76EC6

Accessibility & contrast

On white

6.54
#9F2C8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9F2C8C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2C8C
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2C8C#FFFFFF#000000##FFFFFF
##9F2C8C1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C538F
Deuteranopia (green-blind)
#546489
Tritanopia (blue-blind)
#A73559
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2c8c;
/* rgb */ color: rgb(159, 44, 140);
/* oklch */ color: oklch(50.4% 0.183 335.4);
Tailwind
colors: {
  custom: {
    50: '#bf70ae',
    500: '#9f2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #9f2c8c;
$custom-light: #bf70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2c8c",
  "rgb": {
    "r": 159,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 309.913,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50429,
    "c": 0.1831,
    "h": 335.4
  },
  "luminance": 0.11066
}

Semantic roles & 50–950 ramp

primary
#9F2C8C
secondary
#69BE77
accent
#E06148
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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