#9D229C#9D229C

#9D229C is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.204 H 328.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9D229C
RGBrgb(157, 34, 156)
HSLhsl(300, 64%, 37%)
HSVhsv(300, 78%, 62%)
CMYKcmyk(0%, 78.3%, 0.6%, 38.4%)
CIE-LABlab(39.09, 62.27, -38.58)
CIE-LCHlch(39.09, 73.25, 328.22°)
OKLaboklab(50.21% 0.1743 -0.1069)
OKLCHoklch(50.21% 0.205 328.5)
XYZxyz(20.4772, 10.7140, 32.4355)
Luminance0.1071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D229C #229D23
analogous
#61229D #9D229C #9D225E
triadic
#9D229C #9C9D22 #229C9D
tetradic
#9D229C #9D6122 #229D23 #225E9D
square
#9D229C #9D6122 #229D23 #225E9D
split-complementary
#9D229C #5E9D22 #229D61
monochromatic
#380C38 #6B176A #9D229C #CF2DCE #DC5DDB

Accessibility & contrast

On white

6.68
#9D229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9D229C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D229C
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D229C#FFFFFF#000000##FFFFFF
##9D229C1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00529F
Deuteranopia (green-blind)
#466299
Tritanopia (blue-blind)
#A2365F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d229c;
/* rgb */ color: rgb(157, 34, 156);
/* oklch */ color: oklch(50.2% 0.204 328.5);
Tailwind
colors: {
  custom: {
    50: '#be6dba',
    500: '#9d229c',
    950: '#000000',
  },
}
SCSS
$custom: #9d229c;
$custom-light: #be6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#9d229c",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 300.488,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.50211,
    "c": 0.2045,
    "h": 328.5
  },
  "luminance": 0.10712
}

Semantic roles & 50–950 ramp

primary
#9D229C
secondary
#5AC15B
accent
#E74240
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D229C

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

Preview Lab → · Contrast checker → · Palette generator →

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