#9C228E#9C228E

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

Color values

HEX#9C228E
RGBrgb(156, 34, 142)
HSLhsl(307, 64%, 37%)
HSVhsv(307, 78%, 61%)
CMYKcmyk(0%, 78.2%, 9%, 38.8%)
CIE-LABlab(38.14, 59.84, -31.59)
CIE-LCHlch(38.14, 67.66, 332.17°)
OKLaboklab(49.25% 0.1732 -0.0867)
OKLCHoklch(49.25% 0.194 333.4)
XYZxyz(19.1650, 10.1666, 26.5389)
Luminance0.1017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C228E #229C30
analogous
#6D229C #9C228E #9C2251
triadic
#9C228E #8E9C22 #228E9C
tetradic
#9C228E #9C6D22 #229C30 #22519C
square
#9C228E #9C6D22 #229C30 #22519C
split-complementary
#9C228E #519C22 #229C6D
monochromatic
#380C33 #6A1760 #9C228E #CE2DBC #DC5DCD

Accessibility & contrast

On white

6.92
#9C228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9C228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C228E
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C228E#FFFFFF#000000##FFFFFF
##9C228E1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4F91
Deuteranopia (green-blind)
#4D608B
Tritanopia (blue-blind)
#A32F57
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c228e;
/* rgb */ color: rgb(156, 34, 142);
/* oklch */ color: oklch(49.2% 0.194 333.4);
Tailwind
colors: {
  custom: {
    50: '#bd6caf',
    500: '#9c228e',
    950: '#000000',
  },
}
SCSS
$custom: #9c228e;
$custom-light: #bd6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c228e",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 306.885,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49245,
    "c": 0.19366,
    "h": 333.4
  },
  "luminance": 0.10165
}

Semantic roles & 50–950 ramp

primary
#9C228E
secondary
#5AC065
accent
#E75441
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9C228E

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

Preview Lab → · Contrast checker → · Palette generator →

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