#9A228B#9A228B

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

Color values

HEX#9A228B
RGBrgb(154, 34, 139)
HSLhsl(308, 64%, 37%)
HSVhsv(308, 78%, 60%)
CMYKcmyk(0%, 77.9%, 9.7%, 39.6%)
CIE-LABlab(37.63, 58.93, -30.58)
CIE-LCHlch(37.63, 66.39, 332.57°)
OKLaboklab(48.76% 0.171 -0.0838)
OKLCHoklch(48.76% 0.19 333.9)
XYZxyz(18.5588, 9.8798, 25.3506)
Luminance0.0988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A228B #229A31
analogous
#6D229A #9A228B #9A224F
triadic
#9A228B #8B9A22 #228B9A
tetradic
#9A228B #9A6D22 #229A31 #224F9A
square
#9A228B #9A6D22 #229A31 #224F9A
split-complementary
#9A228B #4F9A22 #229A6D
monochromatic
#360C31 #68175E #9A228B #CC2DB8 #DB5BCB

Accessibility & contrast

On white

7.06
#9A228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A228B
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A228B#FFFFFF#000000##FFFFFF
##9A228B1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#A12E55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a228b;
/* rgb */ color: rgb(154, 34, 139);
/* oklch */ color: oklch(48.8% 0.190 333.9);
Tailwind
colors: {
  custom: {
    50: '#bb6bad',
    500: '#9a228b',
    950: '#000000',
  },
}
SCSS
$custom: #9a228b;
$custom-light: #bb6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#9a228b",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 307.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48758,
    "c": 0.19043,
    "h": 333.9
  },
  "luminance": 0.09878
}

Semantic roles & 50–950 ramp

primary
#9A228B
secondary
#58BF65
accent
#E75641
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A228B

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

Preview Lab → · Contrast checker → · Palette generator →

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