#9F1198#9F1198

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

Color values

HEX#9F1198
RGBrgb(159, 17, 152)
HSLhsl(303, 81%, 35%)
HSVhsv(303, 89%, 62%)
CMYKcmyk(0%, 89.3%, 4.4%, 37.6%)
CIE-LABlab(37.91, 65.82, -38.01)
CIE-LCHlch(37.91, 76.01, 329.99°)
OKLaboklab(49.37% 0.1874 -0.1051)
OKLCHoklch(49.37% 0.215 330.7)
XYZxyz(20.1660, 10.0405, 30.5756)
Luminance0.1004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1198 #119F18
analogous
#5F119F #9F1198 #9F1151
triadic
#9F1198 #989F11 #11989F
tetradic
#9F1198 #9F5F11 #119F18 #11519F
square
#9F1198 #9F5F11 #119F18 #11519F
split-complementary
#9F1198 #519F11 #119F5F
monochromatic
#30052E #680B63 #9F1198 #D617CD #EB40E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F1198#FFFFFF#000000##FFFFFF
##9F11981.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)
#004E9B
Deuteranopia (green-blind)
#466095
Tritanopia (blue-blind)
#A52B59
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1198;
/* rgb */ color: rgb(159, 17, 152);
/* oklch */ color: oklch(49.4% 0.215 330.7);
Tailwind
colors: {
  custom: {
    50: '#c068b7',
    500: '#9f1198',
    950: '#000000',
  },
}
SCSS
$custom: #9f1198;
$custom-light: #c068b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1198",
  "rgb": {
    "r": 159,
    "g": 17,
    "b": 152
  },
  "hsl": {
    "h": 302.958,
    "s": 80.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.21485,
    "h": 330.7
  },
  "luminance": 0.10039
}

Semantic roles & 50–950 ramp

primary
#9F1198
secondary
#42CA48
accent
#F73A31
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F1198

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

Preview Lab → · Contrast checker → · Palette generator →

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