#9F2198#9F2198

#9F2198 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.203 H 330.6°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9F2198
RGBrgb(159, 33, 152)
HSLhsl(303, 66%, 38%)
HSVhsv(303, 79%, 62%)
CMYKcmyk(0%, 79.2%, 4.4%, 37.6%)
CIE-LABlab(39.12, 62.32, -36.10)
CIE-LCHlch(39.12, 72.03, 329.92°)
OKLaboklab(50.22% 0.1773 -0.0997)
OKLCHoklch(50.22% 0.203 330.6)
XYZxyz(20.5094, 10.7273, 30.6901)
Luminance0.1073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2198 #219F28
analogous
#67219F #9F2198 #9F2159
triadic
#9F2198 #989F21 #21989F
tetradic
#9F2198 #9F6721 #219F28 #21599F
square
#9F2198 #9F6721 #219F28 #21599F
split-complementary
#9F2198 #599F21 #219F67
monochromatic
#3A0C37 #6C1668 #9F2198 #D22CC8 #DD5DD6

Accessibility & contrast

On white

6.68
#9F2198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9F2198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2198
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2198#FFFFFF#000000##FFFFFF
##9F21981.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519B
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#A5335C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f2198;
/* rgb */ color: rgb(159, 33, 152);
/* oklch */ color: oklch(50.2% 0.203 330.6);
Tailwind
colors: {
  custom: {
    50: '#bf6cb7',
    500: '#9f2198',
    950: '#000000',
  },
}
SCSS
$custom: #9f2198;
$custom-light: #bf6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2198",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 303.333,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.5022,
    "c": 0.20337,
    "h": 330.6
  },
  "luminance": 0.10726
}

Semantic roles & 50–950 ramp

primary
#9F2198
secondary
#5AC260
accent
#E9493F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2198

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

Preview Lab → · Contrast checker → · Palette generator →

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