#9F227F#9F227F

#9F227F is a mid, vivid pink. Relative luminance 0.100; OKLCH L 49.0% C 0.185 H 340.8°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9F227F
RGBrgb(159, 34, 127)
HSLhsl(315, 65%, 38%)
HSVhsv(315, 79%, 62%)
CMYKcmyk(0%, 78.6%, 20.1%, 37.6%)
CIE-LABlab(37.93, 58.35, -22.62)
CIE-LCHlch(37.93, 62.59, 338.81°)
OKLaboklab(48.95% 0.1747 -0.061)
OKLCHoklch(48.95% 0.185 340.8)
XYZxyz(18.7015, 10.0492, 21.0294)
Luminance0.1005 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F227F #229F42
analogous
#80229F #9F227F #9F2240
triadic
#9F227F #7F9F22 #227F9F
tetradic
#9F227F #9F8022 #229F42 #22409F
square
#9F227F #9F8022 #229F42 #22409F
split-complementary
#9F227F #409F22 #229F80
monochromatic
#3A0C2E #6D1757 #9F227F #D12DA7 #DD5FBC

Accessibility & contrast

On white

6.98
#9F227F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9F227F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F227F
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F227F#FFFFFF#000000##FFFFFF
##9F227F1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4D81
Deuteranopia (green-blind)
#56607C
Tritanopia (blue-blind)
#A9264F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f227f;
/* rgb */ color: rgb(159, 34, 127);
/* oklch */ color: oklch(49.0% 0.185 340.8);
Tailwind
colors: {
  custom: {
    50: '#bf6ca4',
    500: '#9f227f',
    950: '#000000',
  },
}
SCSS
$custom: #9f227f;
$custom-light: #bf6ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f227f",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 315.36,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48952,
    "c": 0.18509,
    "h": 340.8
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#9F227F
secondary
#5BC175
accent
#E86B40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9F227F

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

Preview Lab → · Contrast checker → · Palette generator →

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