#9F2E98#9F2E98

#9F2E98 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.3% C 0.190 H 330.6°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9F2E98
RGBrgb(159, 46, 152)
HSLhsl(304, 55%, 40%)
HSVhsv(304, 71%, 62%)
CMYKcmyk(0%, 71.1%, 4.4%, 37.6%)
CIE-LABlab(40.56, 58.19, -33.82)
CIE-LCHlch(40.56, 67.30, 329.84°)
OKLaboklab(51.26% 0.1654 -0.0932)
OKLCHoklch(51.26% 0.19 330.6)
XYZxyz(20.9425, 11.5935, 30.8344)
Luminance0.1159 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E98 #2E9F35
analogous
#6E2E9F #9F2E98 #9F2E5F
triadic
#9F2E98 #989F2E #2E989F
tetradic
#9F2E98 #9F6E2E #2E9F35 #2E5F9F
square
#9F2E98 #9F6E2E #2E9F35 #2E5F9F
split-complementary
#9F2E98 #5F9F2E #2E9F6E
monochromatic
#40133D #70206B #9F2E98 #C842C0 #D671D0

Accessibility & contrast

On white

6.33
#9F2E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#9F2E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2E98
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E98#FFFFFF#000000##FFFFFF
##9F2E981.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24569B
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#A53C60
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f2e98;
/* rgb */ color: rgb(159, 46, 152);
/* oklch */ color: oklch(51.3% 0.190 330.6);
Tailwind
colors: {
  custom: {
    50: '#bf72b7',
    500: '#9f2e98',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e98;
$custom-light: #bf72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e98",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 303.717,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51255,
    "c": 0.18979,
    "h": 330.6
  },
  "luminance": 0.11592
}

Semantic roles & 50–950 ramp

primary
#9F2E98
secondary
#6BBE70
accent
#DE5349
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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