#9C229D#9C229D

#9C229D is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.205 H 327.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9C229D
RGBrgb(156, 34, 157)
HSLhsl(300, 64%, 37%)
HSVhsv(300, 78%, 62%)
CMYKcmyk(0.6%, 78.3%, 0%, 38.4%)
CIE-LABlab(38.98, 62.22, -39.38)
CIE-LCHlch(38.98, 73.63, 327.67°)
OKLaboklab(50.12% 0.1732 -0.1093)
OKLCHoklch(50.12% 0.205 327.7)
XYZxyz(20.3679, 10.6478, 32.8742)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C229D #239D22
analogous
#5E229D #9C229D #9D2261
triadic
#9C229D #9D9C22 #229D9C
tetradic
#9C229D #9D5E22 #239D22 #22619D
square
#9C229D #9D5E22 #239D22 #22619D
split-complementary
#9C229D #619D22 #229D5E
monochromatic
#380C38 #6A176B #9C229D #CE2DCF #DB5DDC

Accessibility & contrast

On white

6.71
#9C229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9C229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C229D
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C229D#FFFFFF#000000##FFFFFF
##9C229D1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#45619A
Tritanopia (blue-blind)
#A1375F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9c229d;
/* rgb */ color: rgb(156, 34, 157);
/* oklch */ color: oklch(50.1% 0.205 327.7);
Tailwind
colors: {
  custom: {
    50: '#bd6cba',
    500: '#9c229d',
    950: '#000000',
  },
}
SCSS
$custom: #9c229d;
$custom-light: #bd6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#9c229d",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 299.512,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.50116,
    "c": 0.2048,
    "h": 327.7
  },
  "luminance": 0.10646
}

Semantic roles & 50–950 ramp

primary
#9C229D
secondary
#5BC15A
accent
#E74042
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9C229D

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

Preview Lab → · Contrast checker → · Palette generator →

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