#9F228D#9F228D

#9F228D is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.7% C 0.195 H 334.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#9F228D
RGBrgb(159, 34, 141)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 79%, 62%)
CMYKcmyk(0%, 78.6%, 11.3%, 37.6%)
CIE-LABlab(38.62, 60.36, -30.18)
CIE-LCHlch(38.62, 67.48, 333.43°)
OKLaboklab(49.67% 0.1761 -0.0826)
OKLCHoklch(49.67% 0.195 334.9)
XYZxyz(19.6781, 10.4399, 26.1729)
Luminance0.1044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F228D #229F34
analogous
#72229F #9F228D #9F224E
triadic
#9F228D #8D9F22 #228D9F
tetradic
#9F228D #9F7222 #229F34 #224E9F
square
#9F228D #9F7222 #229F34 #224E9F
split-complementary
#9F228D #4E9F22 #229F72
monochromatic
#3A0C34 #6D1760 #9F228D #D12DBA #DD5FCB

Accessibility & contrast

On white

6.80
#9F228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9F228D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F228D
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F228D#FFFFFF#000000##FFFFFF
##9F228D1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F90
Deuteranopia (green-blind)
#50618A
Tritanopia (blue-blind)
#A72E56
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f228d;
/* rgb */ color: rgb(159, 34, 141);
/* oklch */ color: oklch(49.7% 0.195 334.9);
Tailwind
colors: {
  custom: {
    50: '#bf6cae',
    500: '#9f228d',
    950: '#000000',
  },
}
SCSS
$custom: #9f228d;
$custom-light: #bf6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f228d",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 308.64,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49672,
    "c": 0.19454,
    "h": 334.9
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

primary
#9F228D
secondary
#5BC16A
accent
#E85840
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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