#9A228E#9A228E

#9A228E is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.193 H 332.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#9A228E
RGBrgb(154, 34, 142)
HSLhsl(306, 64%, 37%)
HSVhsv(306, 78%, 60%)
CMYKcmyk(0%, 77.9%, 7.8%, 39.6%)
CIE-LABlab(37.79, 59.39, -32.17)
CIE-LCHlch(37.79, 67.54, 331.56°)
OKLaboklab(48.92% 0.1711 -0.0884)
OKLCHoklch(48.92% 0.193 332.7)
XYZxyz(18.7810, 9.9687, 26.5209)
Luminance0.0997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A228E #229A2E
analogous
#6A229A #9A228E #9A2252
triadic
#9A228E #8E9A22 #228E9A
tetradic
#9A228E #9A6A22 #229A2E #22529A
square
#9A228E #9A6A22 #229A2E #22529A
split-complementary
#9A228E #529A22 #229A6A
monochromatic
#360C32 #681760 #9A228E #CC2DBC #DB5BCE

Accessibility & contrast

On white

7.02
#9A228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9A228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A228E
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A228E#FFFFFF#000000##FFFFFF
##9A228E1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E91
Deuteranopia (green-blind)
#4B5F8B
Tritanopia (blue-blind)
#A13057
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a228e;
/* rgb */ color: rgb(154, 34, 142);
/* oklch */ color: oklch(48.9% 0.193 332.7);
Tailwind
colors: {
  custom: {
    50: '#bb6caf',
    500: '#9a228e',
    950: '#000000',
  },
}
SCSS
$custom: #9a228e;
$custom-light: #bb6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a228e",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 306,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48924,
    "c": 0.19261,
    "h": 332.7
  },
  "luminance": 0.09967
}

Semantic roles & 50–950 ramp

primary
#9A228E
secondary
#58BF63
accent
#E75241
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A228E

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

Preview Lab → · Contrast checker → · Palette generator →

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