#9F2257#9F2257

#9F2257 is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.3% C 0.165 H 0.5°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#9F2257
RGBrgb(159, 34, 87)
HSLhsl(335, 65%, 38%)
HSVhsv(335, 79%, 62%)
CMYKcmyk(0%, 78.6%, 45.3%, 37.6%)
CIE-LABlab(36.38, 53.68, 0.32)
CIE-LCHlch(36.38, 53.68, 0.34°)
OKLaboklab(47.31% 0.1649 0.0014)
OKLCHoklch(47.31% 0.165 0.5)
XYZxyz(16.5917, 9.2053, 9.9181)
Luminance0.0920 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2257 #229F6A
analogous
#9F2295 #9F2257 #9F2B22
triadic
#9F2257 #579F22 #22579F
tetradic
#9F2257 #959F22 #229F6A #2B229F
square
#9F2257 #959F22 #229F6A #2B229F
split-complementary
#9F2257 #229F2B #22959F
monochromatic
#3A0C20 #6D173B #9F2257 #D12D73 #DD5F94

Accessibility & contrast

On white

7.39
#9F2257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#9F2257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F2257
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2257#FFFFFF#000000##FFFFFF
##9F22571.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F4658
Deuteranopia (green-blind)
#615E54
Tritanopia (blue-blind)
#AD063A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9f2257;
/* rgb */ color: rgb(159, 34, 87);
/* oklch */ color: oklch(47.3% 0.165 0.5);
Tailwind
colors: {
  custom: {
    50: '#c16a86',
    500: '#9f2257',
    950: '#000000',
  },
}
SCSS
$custom: #9f2257;
$custom-light: #c16a86;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2257",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 334.56,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47313,
    "c": 0.16488,
    "h": 0.5
  },
  "luminance": 0.09203
}

Semantic roles & 50–950 ramp

primary
#9F2257
secondary
#5BC196
accent
#E8A140
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9F2257

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

Preview Lab → · Contrast checker → · Palette generator →

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