#9F2298#9F2298

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

Color values

HEX#9F2298
RGBrgb(159, 34, 152)
HSLhsl(303, 65%, 38%)
HSVhsv(303, 79%, 62%)
CMYKcmyk(0%, 78.6%, 4.4%, 37.6%)
CIE-LABlab(39.21, 62.05, -35.95)
CIE-LCHlch(39.21, 71.71, 329.91°)
OKLaboklab(50.29% 0.1765 -0.0993)
OKLCHoklch(50.29% 0.202 330.6)
XYZxyz(20.5376, 10.7836, 30.6995)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2298 #229F29
analogous
#67229F #9F2298 #9F2259
triadic
#9F2298 #989F22 #22989F
tetradic
#9F2298 #9F6722 #229F29 #22599F
square
#9F2298 #9F6722 #229F29 #22599F
split-complementary
#9F2298 #599F22 #229F67
monochromatic
#3A0C38 #6D1768 #9F2298 #D12DC8 #DD5FD6

Accessibility & contrast

On white

6.65
#9F2298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F2298
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2298#FFFFFF#000000##FFFFFF
##9F22981.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10529B
Deuteranopia (green-blind)
#4B6295
Tritanopia (blue-blind)
#A5345C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f2298;
/* rgb */ color: rgb(159, 34, 152);
/* oklch */ color: oklch(50.3% 0.202 330.6);
Tailwind
colors: {
  custom: {
    50: '#bf6db7',
    500: '#9f2298',
    950: '#000000',
  },
}
SCSS
$custom: #9f2298;
$custom-light: #bf6db7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2298",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 303.36,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50288,
    "c": 0.20246,
    "h": 330.6
  },
  "luminance": 0.10782
}

Semantic roles & 50–950 ramp

primary
#9F2298
secondary
#5BC161
accent
#E84940
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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