#9F2098#9F2098

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

Color values

HEX#9F2098
RGBrgb(159, 32, 152)
HSLhsl(303, 66%, 37%)
HSVhsv(303, 80%, 62%)
CMYKcmyk(0%, 79.9%, 4.4%, 37.6%)
CIE-LABlab(39.02, 62.60, -36.25)
CIE-LCHlch(39.02, 72.33, 329.92°)
OKLaboklab(50.15% 0.178 -0.1001)
OKLCHoklch(50.15% 0.204 330.6)
XYZxyz(20.4820, 10.6726, 30.6809)
Luminance0.1067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2098 #209F27
analogous
#66209F #9F2098 #9F2059
triadic
#9F2098 #989F20 #20989F
tetradic
#9F2098 #9F6620 #209F27 #20599F
square
#9F2098 #9F6620 #209F27 #20599F
split-complementary
#9F2098 #599F20 #209F66
monochromatic
#390B37 #6C1667 #9F2098 #D22AC9 #DE5BD7

Accessibility & contrast

On white

6.70
#9F2098 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9F2098 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2098
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2098#FFFFFF#000000##FFFFFF
##9F20981.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f2098;
/* rgb */ color: rgb(159, 32, 152);
/* oklch */ color: oklch(50.2% 0.204 330.6);
Tailwind
colors: {
  custom: {
    50: '#bf6cb7',
    500: '#9f2098',
    950: '#000000',
  },
}
SCSS
$custom: #9f2098;
$custom-light: #bf6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2098",
  "rgb": {
    "r": 159,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 303.307,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.50153,
    "c": 0.20426,
    "h": 330.6
  },
  "luminance": 0.10671
}

Semantic roles & 50–950 ramp

primary
#9F2098
secondary
#59C25E
accent
#E9483E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2098

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

Preview Lab → · Contrast checker → · Palette generator →

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