#9F1297#9F1297

#9F1297 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.3% C 0.214 H 331.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9F1297
RGBrgb(159, 18, 151)
HSLhsl(303, 80%, 35%)
HSVhsv(303, 89%, 62%)
CMYKcmyk(0%, 88.7%, 5%, 37.6%)
CIE-LABlab(37.91, 65.51, -37.41)
CIE-LCHlch(37.91, 75.43, 330.27°)
OKLaboklab(49.35% 0.1869 -0.1034)
OKLCHoklch(49.35% 0.214 331.1)
XYZxyz(20.1003, 10.0396, 30.1514)
Luminance0.1004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1297 #129F1A
analogous
#60129F #9F1297 #9F1251
triadic
#9F1297 #979F12 #12979F
tetradic
#9F1297 #9F6012 #129F1A #12519F
square
#9F1297 #9F6012 #129F1A #12519F
split-complementary
#9F1297 #519F12 #129F60
monochromatic
#31062F #680C63 #9F1297 #D618CB #EA42E0

Accessibility & contrast

On white

6.98
#9F1297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9F1297 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1297
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1297#FFFFFF#000000##FFFFFF
##9F12971.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#466094
Tritanopia (blue-blind)
#A62B59
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1297;
/* rgb */ color: rgb(159, 18, 151);
/* oklch */ color: oklch(49.3% 0.214 331.1);
Tailwind
colors: {
  custom: {
    50: '#c068b6',
    500: '#9f1297',
    950: '#000000',
  },
}
SCSS
$custom: #9f1297;
$custom-light: #c068b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1297",
  "rgb": {
    "r": 159,
    "g": 18,
    "b": 151
  },
  "hsl": {
    "h": 303.404,
    "s": 79.661,
    "l": 34.706
  },
  "oklch": {
    "l": 0.49346,
    "c": 0.21361,
    "h": 331.1
  },
  "luminance": 0.10038
}

Semantic roles & 50–950 ramp

primary
#9F1297
secondary
#43CA4B
accent
#F63D32
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F1297

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

Preview Lab → · Contrast checker → · Palette generator →

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