#9F2397#9F2397

#9F2397 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.201 H 331.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#9F2397
RGBrgb(159, 35, 151)
HSLhsl(304, 64%, 38%)
HSVhsv(304, 78%, 62%)
CMYKcmyk(0%, 78%, 5%, 37.6%)
CIE-LABlab(39.26, 61.60, -35.27)
CIE-LCHlch(39.26, 70.99, 330.20°)
OKLaboklab(50.3% 0.1756 -0.0973)
OKLCHoklch(50.3% 0.201 331)
XYZxyz(20.4850, 10.8090, 30.2796)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2397 #239F2B
analogous
#69239F #9F2397 #9F2359
triadic
#9F2397 #979F23 #23979F
tetradic
#9F2397 #9F6923 #239F2B #23599F
square
#9F2397 #9F6923 #239F2B #23599F
split-complementary
#9F2397 #599F23 #239F69
monochromatic
#3B0D38 #6D1867 #9F2397 #D12EC7 #DC60D4

Accessibility & contrast

On white

6.64
#9F2397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9F2397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2397
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2397#FFFFFF#000000##FFFFFF
##9F23971.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14529A
Deuteranopia (green-blind)
#4B6294
Tritanopia (blue-blind)
#A5345C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f2397;
/* rgb */ color: rgb(159, 35, 151);
/* oklch */ color: oklch(50.3% 0.201 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6db6',
    500: '#9f2397',
    950: '#000000',
  },
}
SCSS
$custom: #9f2397;
$custom-light: #bf6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2397",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 303.871,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.50301,
    "c": 0.20079,
    "h": 331
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#9F2397
secondary
#5DC163
accent
#E74C41
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2397

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

Preview Lab → · Contrast checker → · Palette generator →

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