#9C228A#9C228A

#9C228A is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.191 H 335.0°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9C228A
RGBrgb(156, 34, 138)
HSLhsl(309, 64%, 37%)
HSVhsv(309, 78%, 61%)
CMYKcmyk(0%, 78.2%, 11.5%, 38.8%)
CIE-LABlab(37.93, 59.23, -29.46)
CIE-LCHlch(37.93, 66.15, 333.55°)
OKLaboklab(49.03% 0.1729 -0.0806)
OKLCHoklch(49.03% 0.191 335)
XYZxyz(18.8700, 10.0487, 24.9856)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C228A #229C34
analogous
#71229C #9C228A #9C224D
triadic
#9C228A #8A9C22 #228A9C
tetradic
#9C228A #9C7122 #229C34 #224D9C
square
#9C228A #9C7122 #229C34 #224D9C
split-complementary
#9C228A #4D9C22 #229C71
monochromatic
#380C31 #6A175E #9C228A #CE2DB6 #DC5DC9

Accessibility & contrast

On white

6.98
#9C228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9C228A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C228A
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C228A#FFFFFF#000000##FFFFFF
##9C228A1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8D
Deuteranopia (green-blind)
#4F6087
Tritanopia (blue-blind)
#A42D55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9c228a;
/* rgb */ color: rgb(156, 34, 138);
/* oklch */ color: oklch(49.0% 0.191 335.0);
Tailwind
colors: {
  custom: {
    50: '#bd6cac',
    500: '#9c228a',
    950: '#000000',
  },
}
SCSS
$custom: #9c228a;
$custom-light: #bd6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9c228a",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 308.852,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49026,
    "c": 0.1908,
    "h": 335
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#9C228A
secondary
#5AC069
accent
#E75941
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9C228A

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

Preview Lab → · Contrast checker → · Palette generator →

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