#9A227F#9A227F

#9A227F is a mid, vivid pink. Relative luminance 0.095; OKLCH L 48.1% C 0.182 H 339.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#9A227F
RGBrgb(154, 34, 127)
HSLhsl(314, 64%, 37%)
HSVhsv(314, 78%, 60%)
CMYKcmyk(0%, 77.9%, 17.5%, 39.6%)
CIE-LABlab(37.02, 57.16, -24.11)
CIE-LCHlch(37.02, 62.04, 337.13°)
OKLaboklab(48.12% 0.17 -0.0653)
OKLCHoklch(48.12% 0.182 339)
XYZxyz(17.7297, 9.5481, 20.9838)
Luminance0.0955 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A227F #229A3D
analogous
#79229A #9A227F #9A2243
triadic
#9A227F #7F9A22 #227F9A
tetradic
#9A227F #9A7922 #229A3D #22439A
square
#9A227F #9A7922 #229A3D #22439A
split-complementary
#9A227F #439A22 #229A79
monochromatic
#360C2C #681756 #9A227F #CC2DA8 #DB5BBE

Accessibility & contrast

On white

7.22
#9A227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9A227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A227F
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A227F#FFFFFF#000000##FFFFFF
##9A227F1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B81
Deuteranopia (green-blind)
#525E7C
Tritanopia (blue-blind)
#A3284E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a227f;
/* rgb */ color: rgb(154, 34, 127);
/* oklch */ color: oklch(48.1% 0.182 339.0);
Tailwind
colors: {
  custom: {
    50: '#bc6ba4',
    500: '#9a227f',
    950: '#000000',
  },
}
SCSS
$custom: #9a227f;
$custom-light: #bc6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a227f",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 313.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48124,
    "c": 0.18208,
    "h": 339
  },
  "luminance": 0.09546
}

Semantic roles & 50–950 ramp

primary
#9A227F
secondary
#58BF70
accent
#E76641
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A227F

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

Preview Lab → · Contrast checker → · Palette generator →

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