#9F227A#9F227A

#9F227A is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.7% C 0.182 H 343.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9F227A
RGBrgb(159, 34, 122)
HSLhsl(318, 65%, 38%)
HSVhsv(318, 79%, 62%)
CMYKcmyk(0%, 78.6%, 23.3%, 37.6%)
CIE-LABlab(37.70, 57.68, -19.86)
CIE-LCHlch(37.70, 61.01, 341.00°)
OKLaboklab(48.71% 0.174 -0.0532)
OKLCHoklch(48.71% 0.182 343)
XYZxyz(18.3837, 9.9221, 19.3556)
Luminance0.0992 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F227A #229F47
analogous
#85229F #9F227A #9F223B
triadic
#9F227A #7A9F22 #227A9F
tetradic
#9F227A #9F8522 #229F47 #223B9F
square
#9F227A #9F8522 #229F47 #223B9F
split-complementary
#9F227A #3B9F22 #229F85
monochromatic
#3A0C2D #6D1753 #9F227A #D12DA1 #DD5FB7

Accessibility & contrast

On white

7.04
#9F227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9F227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F227A
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F227A#FFFFFF#000000##FFFFFF
##9F227A1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7C
Deuteranopia (green-blind)
#586077
Tritanopia (blue-blind)
#A9234C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f227a;
/* rgb */ color: rgb(159, 34, 122);
/* oklch */ color: oklch(48.7% 0.182 343.0);
Tailwind
colors: {
  custom: {
    50: '#bf6ca0',
    500: '#9f227a',
    950: '#000000',
  },
}
SCSS
$custom: #9f227a;
$custom-light: #bf6ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f227a",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 317.76,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48712,
    "c": 0.18193,
    "h": 343
  },
  "luminance": 0.0992
}

Semantic roles & 50–950 ramp

primary
#9F227A
secondary
#5BC17A
accent
#E87240
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9F227A

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

Preview Lab → · Contrast checker → · Palette generator →

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