#9A227B#9A227B

#9A227B is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.9% C 0.179 H 340.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#9A227B
RGBrgb(154, 34, 123)
HSLhsl(316, 64%, 37%)
HSVhsv(316, 78%, 60%)
CMYKcmyk(0%, 77.9%, 20.1%, 39.6%)
CIE-LABlab(36.83, 56.60, -21.91)
CIE-LCHlch(36.83, 60.69, 338.83°)
OKLaboklab(47.93% 0.1694 -0.0591)
OKLCHoklch(47.93% 0.179 340.8)
XYZxyz(17.4742, 9.4459, 19.6380)
Luminance0.0944 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A227B #229A41
analogous
#7D229A #9A227B #9A223F
triadic
#9A227B #7B9A22 #227B9A
tetradic
#9A227B #9A7D22 #229A41 #223F9A
square
#9A227B #9A7D22 #229A41 #223F9A
split-complementary
#9A227B #3F9A22 #229A7D
monochromatic
#360C2B #681753 #9A227B #CC2DA3 #DB5BBA

Accessibility & contrast

On white

7.27
#9A227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#9A227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A227B
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A227B#FFFFFF#000000##FFFFFF
##9A227B1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7D
Deuteranopia (green-blind)
#535D78
Tritanopia (blue-blind)
#A4254C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a227b;
/* rgb */ color: rgb(154, 34, 123);
/* oklch */ color: oklch(47.9% 0.179 340.8);
Tailwind
colors: {
  custom: {
    50: '#bc6ba1',
    500: '#9a227b',
    950: '#000000',
  },
}
SCSS
$custom: #9a227b;
$custom-light: #bc6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a227b",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 315.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47925,
    "c": 0.17944,
    "h": 340.8
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#9A227B
secondary
#58BF73
accent
#E76C41
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #9A227B

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

Preview Lab → · Contrast checker → · Palette generator →

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