#9F2A97#9F2A97

#9F2A97 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.194 H 331.0°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#9F2A97
RGBrgb(159, 42, 151)
HSLhsl(304, 58%, 39%)
HSVhsv(304, 74%, 62%)
CMYKcmyk(0%, 73.6%, 5%, 37.6%)
CIE-LABlab(40.02, 59.42, -34.07)
CIE-LCHlch(40.02, 68.49, 330.17°)
OKLaboklab(50.85% 0.1693 -0.0939)
OKLCHoklch(50.85% 0.194 331)
XYZxyz(20.7119, 11.2629, 30.3552)
Luminance0.1126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A97 #2A9F32
analogous
#6D2A9F #9F2A97 #9F2A5C
triadic
#9F2A97 #979F2A #2A979F
tetradic
#9F2A97 #9F6D2A #2A9F32 #2A5C9F
square
#9F2A97 #9F6D2A #2A9F32 #2A5C9F
split-complementary
#9F2A97 #5C9F2A #2A9F6D
monochromatic
#3E103B #6F1D69 #9F2A97 #CB3BC1 #D86BD1

Accessibility & contrast

On white

6.46
#9F2A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9F2A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A97
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A97#FFFFFF#000000##FFFFFF
##9F2A971.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549A
Deuteranopia (green-blind)
#4E6494
Tritanopia (blue-blind)
#A5385E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2a97;
/* rgb */ color: rgb(159, 42, 151);
/* oklch */ color: oklch(50.8% 0.194 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf70b6',
    500: '#9f2a97',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a97;
$custom-light: #bf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a97",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 304.103,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50848,
    "c": 0.19359,
    "h": 331
  },
  "luminance": 0.11261
}

Semantic roles & 50–950 ramp

primary
#9F2A97
secondary
#66BF6C
accent
#E15146
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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