#9F2297#9F2297

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

Color values

HEX#9F2297
RGBrgb(159, 34, 151)
HSLhsl(304, 65%, 38%)
HSVhsv(304, 79%, 62%)
CMYKcmyk(0%, 78.6%, 5%, 37.6%)
CIE-LABlab(39.16, 61.89, -35.43)
CIE-LCHlch(39.16, 71.31, 330.21°)
OKLaboklab(50.23% 0.1765 -0.0977)
OKLCHoklch(50.23% 0.202 331)
XYZxyz(20.4560, 10.7510, 30.2699)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2297 #229F2A
analogous
#68229F #9F2297 #9F2258
triadic
#9F2297 #979F22 #22979F
tetradic
#9F2297 #9F6822 #229F2A #22589F
square
#9F2297 #9F6822 #229F2A #22589F
split-complementary
#9F2297 #589F22 #229F68
monochromatic
#3A0C37 #6D1767 #9F2297 #D12DC7 #DD5FD5

Accessibility & contrast

On white

6.67
#9F2297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F2297
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2297#FFFFFF#000000##FFFFFF
##9F22971.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#4B6294
Tritanopia (blue-blind)
#A5335C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f2297;
/* rgb */ color: rgb(159, 34, 151);
/* oklch */ color: oklch(50.2% 0.202 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6db6',
    500: '#9f2297',
    950: '#000000',
  },
}
SCSS
$custom: #9f2297;
$custom-light: #bf6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2297",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 303.84,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50231,
    "c": 0.20173,
    "h": 331
  },
  "luminance": 0.10749
}

Semantic roles & 50–950 ramp

primary
#9F2297
secondary
#5BC162
accent
#E84B40
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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