#9A228C#9A228C

#9A228C is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.191 H 333.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9A228C
RGBrgb(154, 34, 140)
HSLhsl(307, 64%, 37%)
HSVhsv(307, 78%, 60%)
CMYKcmyk(0%, 77.9%, 9.1%, 39.6%)
CIE-LABlab(37.68, 59.08, -31.11)
CIE-LCHlch(37.68, 66.77, 332.23°)
OKLaboklab(48.81% 0.171 -0.0854)
OKLCHoklch(48.81% 0.191 333.5)
XYZxyz(18.6322, 9.9092, 25.7372)
Luminance0.0991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A228C #229A30
analogous
#6C229A #9A228C #9A2250
triadic
#9A228C #8C9A22 #228C9A
tetradic
#9A228C #9A6C22 #229A30 #22509A
square
#9A228C #9A6C22 #229A30 #22509A
split-complementary
#9A228C #509A22 #229A6C
monochromatic
#360C31 #68175E #9A228C #CC2DBA #DB5BCC

Accessibility & contrast

On white

7.04
#9A228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9A228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A228C
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A228C#FFFFFF#000000##FFFFFF
##9A228C1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E8F
Deuteranopia (green-blind)
#4C5F89
Tritanopia (blue-blind)
#A12F56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a228c;
/* rgb */ color: rgb(154, 34, 140);
/* oklch */ color: oklch(48.8% 0.191 333.5);
Tailwind
colors: {
  custom: {
    50: '#bb6bae',
    500: '#9a228c',
    950: '#000000',
  },
}
SCSS
$custom: #9a228c;
$custom-light: #bb6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#9a228c",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 307,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48813,
    "c": 0.19116,
    "h": 333.5
  },
  "luminance": 0.09908
}

Semantic roles & 50–950 ramp

primary
#9A228C
secondary
#58BF64
accent
#E75441
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A228C

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

Preview Lab → · Contrast checker → · Palette generator →

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