#9C228F#9C228F

#9C228F is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.194 H 333.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9C228F
RGBrgb(156, 34, 143)
HSLhsl(306, 64%, 37%)
HSVhsv(306, 78%, 61%)
CMYKcmyk(0%, 78.2%, 8.3%, 38.8%)
CIE-LABlab(38.19, 59.99, -32.11)
CIE-LCHlch(38.19, 68.04, 331.84°)
OKLaboklab(49.3% 0.1732 -0.0882)
OKLCHoklch(49.3% 0.194 333)
XYZxyz(19.2404, 10.1968, 26.9361)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C228F #229C2F
analogous
#6C229C #9C228F #9C2252
triadic
#9C228F #8F9C22 #228F9C
tetradic
#9C228F #9C6C22 #229C2F #22529C
square
#9C228F #9C6C22 #229C2F #22529C
split-complementary
#9C228F #529C22 #229C6C
monochromatic
#380C33 #6A1761 #9C228F #CE2DBD #DC5DCE

Accessibility & contrast

On white

6.91
#9C228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9C228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C228F
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C228F#FFFFFF#000000##FFFFFF
##9C228F1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#4D608C
Tritanopia (blue-blind)
#A33057
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c228f;
/* rgb */ color: rgb(156, 34, 143);
/* oklch */ color: oklch(49.3% 0.194 333.0);
Tailwind
colors: {
  custom: {
    50: '#bd6cb0',
    500: '#9c228f',
    950: '#000000',
  },
}
SCSS
$custom: #9c228f;
$custom-light: #bd6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9c228f",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 306.393,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.493,
    "c": 0.19438,
    "h": 333
  },
  "luminance": 0.10195
}

Semantic roles & 50–950 ramp

primary
#9C228F
secondary
#5AC065
accent
#E75241
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #9C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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