#9F229A#9F229A

#9F229A is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.204 H 329.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#9F229A
RGBrgb(159, 34, 154)
HSLhsl(302, 65%, 38%)
HSVhsv(302, 79%, 62%)
CMYKcmyk(0%, 78.6%, 3.1%, 37.6%)
CIE-LABlab(39.33, 62.36, -36.98)
CIE-LCHlch(39.33, 72.50, 329.33°)
OKLaboklab(50.41% 0.1765 -0.1022)
OKLCHoklch(50.41% 0.204 329.9)
XYZxyz(20.7027, 10.8497, 31.5694)
Luminance0.1085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F229A #229F27
analogous
#65229F #9F229A #9F225B
triadic
#9F229A #9A9F22 #229A9F
tetradic
#9F229A #9F6522 #229F27 #225B9F
square
#9F229A #9F6522 #229F27 #225B9F
split-complementary
#9F229A #5B9F22 #229F65
monochromatic
#3A0C38 #6D1769 #9F229A #D12DCB #DD5FD8

Accessibility & contrast

On white

6.63
#9F229A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9F229A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F229A
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F229A#FFFFFF#000000##FFFFFF
##9F229A1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B529D
Deuteranopia (green-blind)
#496297
Tritanopia (blue-blind)
#A5355E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f229a;
/* rgb */ color: rgb(159, 34, 154);
/* oklch */ color: oklch(50.4% 0.204 329.9);
Tailwind
colors: {
  custom: {
    50: '#bf6db8',
    500: '#9f229a',
    950: '#000000',
  },
}
SCSS
$custom: #9f229a;
$custom-light: #bf6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f229a",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 302.4,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50405,
    "c": 0.20394,
    "h": 329.9
  },
  "luminance": 0.10848
}

Semantic roles & 50–950 ramp

primary
#9F229A
secondary
#5BC15F
accent
#E84740
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F229A

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

Preview Lab → · Contrast checker → · Palette generator →

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