#9F228A#9F228A

#9F228A is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.5% C 0.192 H 336.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9F228A
RGBrgb(159, 34, 138)
HSLhsl(310, 65%, 38%)
HSVhsv(310, 79%, 62%)
CMYKcmyk(0%, 78.6%, 13.2%, 37.6%)
CIE-LABlab(38.47, 59.91, -28.58)
CIE-LCHlch(38.47, 66.38, 334.50°)
OKLaboklab(49.51% 0.1759 -0.078)
OKLCHoklch(49.51% 0.192 336.1)
XYZxyz(19.4579, 10.3518, 25.0132)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F228A #229F37
analogous
#75229F #9F228A #9F224B
triadic
#9F228A #8A9F22 #228A9F
tetradic
#9F228A #9F7522 #229F37 #224B9F
square
#9F228A #9F7522 #229F37 #224B9F
split-complementary
#9F228A #4B9F22 #229F75
monochromatic
#3A0C32 #6D175E #9F228A #D12DB6 #DD5FC8

Accessibility & contrast

On white

6.84
#9F228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9F228A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F228A
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F228A#FFFFFF#000000##FFFFFF
##9F228A1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8D
Deuteranopia (green-blind)
#516187
Tritanopia (blue-blind)
#A72C55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f228a;
/* rgb */ color: rgb(159, 34, 138);
/* oklch */ color: oklch(49.5% 0.192 336.1);
Tailwind
colors: {
  custom: {
    50: '#bf6cac',
    500: '#9f228a',
    950: '#000000',
  },
}
SCSS
$custom: #9f228a;
$custom-light: #bf6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f228a",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 310.08,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49512,
    "c": 0.19244,
    "h": 336.1
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#9F228A
secondary
#5BC16D
accent
#E85C40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F228A

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

Preview Lab → · Contrast checker → · Palette generator →

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