#9F228B#9F228B

#9F228B is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.193 H 335.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#9F228B
RGBrgb(159, 34, 139)
HSLhsl(310, 65%, 38%)
HSVhsv(310, 79%, 62%)
CMYKcmyk(0%, 78.6%, 12.6%, 37.6%)
CIE-LABlab(38.52, 60.06, -29.12)
CIE-LCHlch(38.52, 66.75, 334.14°)
OKLaboklab(49.57% 0.176 -0.0795)
OKLCHoklch(49.57% 0.193 335.7)
XYZxyz(19.5306, 10.3809, 25.3962)
Luminance0.1038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F228B #229F36
analogous
#74229F #9F228B #9F224C
triadic
#9F228B #8B9F22 #228B9F
tetradic
#9F228B #9F7422 #229F36 #224C9F
square
#9F228B #9F7422 #229F36 #224C9F
split-complementary
#9F228B #4C9F22 #229F74
monochromatic
#3A0C33 #6D175F #9F228B #D12DB7 #DD5FC9

Accessibility & contrast

On white

6.83
#9F228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9F228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F228B
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F228B#FFFFFF#000000##FFFFFF
##9F228B1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8E
Deuteranopia (green-blind)
#516188
Tritanopia (blue-blind)
#A72D55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f228b;
/* rgb */ color: rgb(159, 34, 139);
/* oklch */ color: oklch(49.6% 0.193 335.7);
Tailwind
colors: {
  custom: {
    50: '#bf6cad',
    500: '#9f228b',
    950: '#000000',
  },
}
SCSS
$custom: #9f228b;
$custom-light: #bf6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f228b",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 309.6,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49565,
    "c": 0.19313,
    "h": 335.7
  },
  "luminance": 0.10379
}

Semantic roles & 50–950 ramp

primary
#9F228B
secondary
#5BC16C
accent
#E85B40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F228B

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

Preview Lab → · Contrast checker → · Palette generator →

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