#9F227E#9F227E

#9F227E is a mid, vivid pink. Relative luminance 0.100; OKLCH L 48.9% C 0.184 H 341.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F227E
RGBrgb(159, 34, 126)
HSLhsl(316, 65%, 38%)
HSVhsv(316, 79%, 62%)
CMYKcmyk(0%, 78.6%, 20.8%, 37.6%)
CIE-LABlab(37.88, 58.22, -22.07)
CIE-LCHlch(37.88, 62.26, 339.24°)
OKLaboklab(48.9% 0.1746 -0.0595)
OKLCHoklch(48.9% 0.184 341.2)
XYZxyz(18.6366, 10.0233, 20.6878)
Luminance0.1002 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F227E #229F43
analogous
#81229F #9F227E #9F223F
triadic
#9F227E #7E9F22 #227E9F
tetradic
#9F227E #9F8122 #229F43 #223F9F
square
#9F227E #9F8122 #229F43 #223F9F
split-complementary
#9F227E #3F9F22 #229F81
monochromatic
#3A0C2E #6D1756 #9F227E #D12DA6 #DD5FBB

Accessibility & contrast

On white

6.99
#9F227E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#9F227E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F227E
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F227E#FFFFFF#000000##FFFFFF
##9F227E1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C80
Deuteranopia (green-blind)
#56607B
Tritanopia (blue-blind)
#A9254E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f227e;
/* rgb */ color: rgb(159, 34, 126);
/* oklch */ color: oklch(48.9% 0.184 341.2);
Tailwind
colors: {
  custom: {
    50: '#bf6ca3',
    500: '#9f227e',
    950: '#000000',
  },
}
SCSS
$custom: #9f227e;
$custom-light: #bf6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f227e",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 315.84,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48903,
    "c": 0.18445,
    "h": 341.2
  },
  "luminance": 0.10021
}

Semantic roles & 50–950 ramp

primary
#9F227E
secondary
#5BC176
accent
#E86C40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9F227E

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

Preview Lab → · Contrast checker → · Palette generator →

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