#9A228D#9A228D

#9A228D is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.192 H 333.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9A228D
RGBrgb(154, 34, 141)
HSLhsl(307, 64%, 37%)
HSVhsv(307, 78%, 60%)
CMYKcmyk(0%, 77.9%, 8.4%, 39.6%)
CIE-LABlab(37.73, 59.23, -31.64)
CIE-LCHlch(37.73, 67.16, 331.89°)
OKLaboklab(48.87% 0.1711 -0.0869)
OKLCHoklch(48.87% 0.192 333.1)
XYZxyz(18.7063, 9.9388, 26.1273)
Luminance0.0994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A228D #229A2F
analogous
#6B229A #9A228D #9A2251
triadic
#9A228D #8D9A22 #228D9A
tetradic
#9A228D #9A6B22 #229A2F #22519A
square
#9A228D #9A6B22 #229A2F #22519A
split-complementary
#9A228D #519A22 #229A6B
monochromatic
#360C31 #68175F #9A228D #CC2DBB #DB5BCD

Accessibility & contrast

On white

7.03
#9A228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A228D
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A228D#FFFFFF#000000##FFFFFF
##9A228D1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a228d;
/* rgb */ color: rgb(154, 34, 141);
/* oklch */ color: oklch(48.9% 0.192 333.1);
Tailwind
colors: {
  custom: {
    50: '#bb6caf',
    500: '#9a228d',
    950: '#000000',
  },
}
SCSS
$custom: #9a228d;
$custom-light: #bb6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a228d",
  "rgb": {
    "r": 154,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 306.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48868,
    "c": 0.19188,
    "h": 333.1
  },
  "luminance": 0.09937
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A228D

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

Preview Lab → · Contrast checker → · Palette generator →

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