#9A228A#9A228A

#9A228A is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.190 H 334.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#9A228A
RGBrgb(154, 34, 138)
HSLhsl(308, 64%, 37%)
HSVhsv(308, 78%, 60%)
CMYKcmyk(0%, 77.9%, 10.4%, 39.6%)
CIE-LABlab(37.57, 58.77, -30.05)
CIE-LCHlch(37.57, 66.01, 332.92°)
OKLaboklab(48.7% 0.1709 -0.0823)
OKLCHoklch(48.7% 0.19 334.3)
XYZxyz(18.4861, 9.8507, 24.9676)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A228A #229A32
analogous
#6E229A #9A228A #9A224E
triadic
#9A228A #8A9A22 #228A9A
tetradic
#9A228A #9A6E22 #229A32 #224E9A
square
#9A228A #9A6E22 #229A32 #224E9A
split-complementary
#9A228A #4E9A22 #229A6E
monochromatic
#360C30 #68175D #9A228A #CC2DB7 #DB5BCA

Accessibility & contrast

On white

7.07
#9A228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9A228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A228A
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A228A#FFFFFF#000000##FFFFFF
##9A228A1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4D8D
Deuteranopia (green-blind)
#4D5F87
Tritanopia (blue-blind)
#A22E55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9a228a;
/* rgb */ color: rgb(154, 34, 138);
/* oklch */ color: oklch(48.7% 0.190 334.3);
Tailwind
colors: {
  custom: {
    50: '#bb6bac',
    500: '#9a228a',
    950: '#000000',
  },
}
SCSS
$custom: #9a228a;
$custom-light: #bb6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a228a",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 308,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48703,
    "c": 0.18972,
    "h": 334.3
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

primary
#9A228A
secondary
#58BF66
accent
#E75741
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A228A

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

Preview Lab → · Contrast checker → · Palette generator →

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