#9C228D#9C228D

#9C228D is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.2% C 0.193 H 333.8°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9C228D
RGBrgb(156, 34, 141)
HSLhsl(307, 64%, 37%)
HSVhsv(307, 78%, 61%)
CMYKcmyk(0%, 78.2%, 9.6%, 38.8%)
CIE-LABlab(38.09, 59.68, -31.06)
CIE-LCHlch(38.09, 67.28, 332.51°)
OKLaboklab(49.19% 0.1731 -0.0852)
OKLCHoklch(49.19% 0.193 333.8)
XYZxyz(19.0902, 10.1367, 26.1453)
Luminance0.1013 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C228D #229C31
analogous
#6E229C #9C228D #9C2250
triadic
#9C228D #8D9C22 #228D9C
tetradic
#9C228D #9C6E22 #229C31 #22509C
square
#9C228D #9C6E22 #229C31 #22509C
split-complementary
#9C228D #509C22 #229C6E
monochromatic
#380C32 #6A1760 #9C228D #CE2DBA #DC5DCC

Accessibility & contrast

On white

6.94
#9C228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9C228D
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C228D#FFFFFF#000000##FFFFFF
##9C228D1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4E90
Deuteranopia (green-blind)
#4D608A
Tritanopia (blue-blind)
#A32F56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c228d;
/* rgb */ color: rgb(156, 34, 141);
/* oklch */ color: oklch(49.2% 0.193 333.8);
Tailwind
colors: {
  custom: {
    50: '#bd6caf',
    500: '#9c228d',
    950: '#000000',
  },
}
SCSS
$custom: #9c228d;
$custom-light: #bd6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c228d",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 307.377,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.19294,
    "h": 333.8
  },
  "luminance": 0.10135
}

Semantic roles & 50–950 ramp

primary
#9C228D
secondary
#5AC066
accent
#E75541
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9C228D

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

Preview Lab → · Contrast checker → · Palette generator →

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