#9A2271#9A2271

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

Color values

HEX#9A2271
RGBrgb(154, 34, 113)
HSLhsl(321, 64%, 37%)
HSVhsv(321, 78%, 60%)
CMYKcmyk(0%, 77.9%, 26.6%, 39.6%)
CIE-LABlab(36.38, 55.26, -16.33)
CIE-LCHlch(36.38, 57.63, 343.54°)
OKLaboklab(47.46% 0.1677 -0.0434)
OKLCHoklch(47.46% 0.173 345.5)
XYZxyz(16.8798, 9.2082, 16.5080)
Luminance0.0921 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2271 #229A4B
analogous
#87229A #9A2271 #9A2235
triadic
#9A2271 #719A22 #22719A
tetradic
#9A2271 #9A8722 #229A4B #22359A
square
#9A2271 #9A8722 #229A4B #22359A
split-complementary
#9A2271 #359A22 #229A87
monochromatic
#360C27 #68174C #9A2271 #CC2D96 #DB5BAF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A2271#FFFFFF#000000##FFFFFF
##9A22711.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)
#324973
Deuteranopia (green-blind)
#575D6E
Tritanopia (blue-blind)
#A51F47
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a2271;
/* rgb */ color: rgb(154, 34, 113);
/* oklch */ color: oklch(47.5% 0.173 345.5);
Tailwind
colors: {
  custom: {
    50: '#bc6a9a',
    500: '#9a2271',
    950: '#000000',
  },
}
SCSS
$custom: #9a2271;
$custom-light: #bc6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2271",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 320.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47456,
    "c": 0.17323,
    "h": 345.5
  },
  "luminance": 0.09206
}

Semantic roles & 50–950 ramp

primary
#9A2271
secondary
#58BF7C
accent
#E77A41
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #9A2271

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

Preview Lab → · Contrast checker → · Palette generator →

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