#9F2F97#9F2F97

#9F2F97 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.3% C 0.188 H 331.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9F2F97
RGBrgb(159, 47, 151)
HSLhsl(304, 54%, 40%)
HSVhsv(304, 70%, 62%)
CMYKcmyk(0%, 70.4%, 5%, 37.6%)
CIE-LABlab(40.64, 57.66, -33.09)
CIE-LCHlch(40.64, 66.48, 330.15°)
OKLaboklab(51.29% 0.1643 -0.0911)
OKLCHoklch(51.29% 0.188 331)
XYZxyz(20.9005, 11.6399, 30.4181)
Luminance0.1164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2F97 #2F9F37
analogous
#6F2F9F #9F2F97 #9F2F5F
triadic
#9F2F97 #979F2F #2F979F
tetradic
#9F2F97 #9F6F2F #2F9F37 #2F5F9F
square
#9F2F97 #9F6F2F #2F9F37 #2F5F9F
split-complementary
#9F2F97 #5F9F2F #2F9F6F
monochromatic
#41133D #70216A #9F2F97 #C844BE #D673CF

Accessibility & contrast

On white

6.31
#9F2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9F2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2F97
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2F97#FFFFFF#000000##FFFFFF
##9F2F971.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#516594
Tritanopia (blue-blind)
#A53C5F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f2f97;
/* rgb */ color: rgb(159, 47, 151);
/* oklch */ color: oklch(51.3% 0.188 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf72b6',
    500: '#9f2f97',
    950: '#000000',
  },
}
SCSS
$custom: #9f2f97;
$custom-light: #bf72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2f97",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 304.286,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51292,
    "c": 0.18782,
    "h": 331
  },
  "luminance": 0.11638
}

Semantic roles & 50–950 ramp

primary
#9F2F97
secondary
#6DBD72
accent
#DE554A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #9F2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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