#9F228E#9F228E

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

Color values

HEX#9F228E
RGBrgb(159, 34, 142)
HSLhsl(308, 65%, 38%)
HSVhsv(308, 79%, 62%)
CMYKcmyk(0%, 78.6%, 10.7%, 37.6%)
CIE-LABlab(38.67, 60.51, -30.71)
CIE-LCHlch(38.67, 67.85, 333.09°)
OKLaboklab(49.73% 0.1762 -0.0841)
OKLCHoklch(49.73% 0.195 334.5)
XYZxyz(19.7528, 10.4698, 26.5665)
Luminance0.1047 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F228E #229F33
analogous
#71229F #9F228E #9F224F
triadic
#9F228E #8E9F22 #228E9F
tetradic
#9F228E #9F7122 #229F33 #224F9F
square
#9F228E #9F7122 #229F33 #224F9F
split-complementary
#9F228E #4F9F22 #229F71
monochromatic
#3A0C34 #6D1761 #9F228E #D12DBB #DD5FCC

Accessibility & contrast

On white

6.79
#9F228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F228E
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F228E#FFFFFF#000000##FFFFFF
##9F228E1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F91
Deuteranopia (green-blind)
#50618B
Tritanopia (blue-blind)
#A72E57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f228e;
/* rgb */ color: rgb(159, 34, 142);
/* oklch */ color: oklch(49.7% 0.195 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6caf',
    500: '#9f228e',
    950: '#000000',
  },
}
SCSS
$custom: #9f228e;
$custom-light: #bf6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f228e",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 308.16,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49727,
    "c": 0.19523,
    "h": 334.5
  },
  "luminance": 0.10468
}

Semantic roles & 50–950 ramp

primary
#9F228E
secondary
#5BC169
accent
#E85740
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F228E

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

Preview Lab → · Contrast checker → · Palette generator →

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