#9A227E#9A227E

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

Color values

HEX#9A227E
RGBrgb(154, 34, 126)
HSLhsl(314, 64%, 37%)
HSVhsv(314, 78%, 60%)
CMYKcmyk(0%, 77.9%, 18.2%, 39.6%)
CIE-LABlab(36.97, 57.02, -23.56)
CIE-LCHlch(36.97, 61.69, 337.54°)
OKLaboklab(48.07% 0.1698 -0.0638)
OKLCHoklch(48.07% 0.181 339.4)
XYZxyz(17.6648, 9.5222, 20.6423)
Luminance0.0952 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A227E #229A3E
analogous
#7A229A #9A227E #9A2242
triadic
#9A227E #7E9A22 #227E9A
tetradic
#9A227E #9A7A22 #229A3E #22429A
square
#9A227E #9A7A22 #229A3E #22429A
split-complementary
#9A227E #429A22 #229A7A
monochromatic
#360C2C #681755 #9A227E #CC2DA7 #DB5BBD

Accessibility & contrast

On white

7.23
#9A227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#9A227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A227E
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A227E#FFFFFF#000000##FFFFFF
##9A227E1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B80
Deuteranopia (green-blind)
#525E7B
Tritanopia (blue-blind)
#A3274E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a227e;
/* rgb */ color: rgb(154, 34, 126);
/* oklch */ color: oklch(48.1% 0.181 339.4);
Tailwind
colors: {
  custom: {
    50: '#bc6ba3',
    500: '#9a227e',
    950: '#000000',
  },
}
SCSS
$custom: #9a227e;
$custom-light: #bc6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a227e",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 314,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48074,
    "c": 0.18141,
    "h": 339.4
  },
  "luminance": 0.0952
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A227E

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

Preview Lab → · Contrast checker → · Palette generator →

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