#9F2897#9F2897

#9F2897 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.7% C 0.196 H 331.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9F2897
RGBrgb(159, 40, 151)
HSLhsl(304, 60%, 39%)
HSVhsv(304, 75%, 62%)
CMYKcmyk(0%, 74.8%, 5%, 37.6%)
CIE-LABlab(39.79, 60.08, -34.43)
CIE-LCHlch(39.79, 69.24, 330.18°)
OKLaboklab(50.68% 0.1712 -0.0949)
OKLCHoklch(50.68% 0.196 331)
XYZxyz(20.6428, 11.1245, 30.3322)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2897 #289F30
analogous
#6C289F #9F2897 #9F285C
triadic
#9F2897 #979F28 #28979F
tetradic
#9F2897 #9F6C28 #289F30 #285C9F
square
#9F2897 #9F6C28 #289F30 #285C9F
split-complementary
#9F2897 #5C9F28 #289F6C
monochromatic
#3D0F3A #6E1C69 #9F2897 #CD37C3 #D968D2

Accessibility & contrast

On white

6.51
#9F2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9F2897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2897
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2897#FFFFFF#000000##FFFFFF
##9F28971.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C539A
Deuteranopia (green-blind)
#4D6394
Tritanopia (blue-blind)
#A5375D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2897;
/* rgb */ color: rgb(159, 40, 151);
/* oklch */ color: oklch(50.7% 0.196 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fb6',
    500: '#9f2897',
    950: '#000000',
  },
}
SCSS
$custom: #9f2897;
$custom-light: #bf6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2897",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 304.034,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50682,
    "c": 0.19576,
    "h": 331
  },
  "luminance": 0.11123
}

Semantic roles & 50–950 ramp

primary
#9F2897
secondary
#64BF6A
accent
#E34F45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2897

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

Preview Lab → · Contrast checker → · Palette generator →

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