#9D229A#9D229A

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

Color values

HEX#9D229A
RGBrgb(157, 34, 154)
HSLhsl(301, 64%, 37%)
HSVhsv(301, 78%, 62%)
CMYKcmyk(0%, 78.3%, 1.9%, 38.4%)
CIE-LABlab(38.98, 61.94, -37.56)
CIE-LCHlch(38.98, 72.44, 328.77°)
OKLaboklab(50.09% 0.1744 -0.104)
OKLCHoklch(50.09% 0.203 329.2)
XYZxyz(20.3092, 10.6468, 31.5510)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D229A #229D25
analogous
#62229D #9D229A #9D225D
triadic
#9D229A #9A9D22 #229A9D
tetradic
#9D229A #9D6222 #229D25 #225D9D
square
#9D229A #9D6222 #229D25 #225D9D
split-complementary
#9D229A #5D9D22 #229D62
monochromatic
#380C37 #6B1769 #9D229A #CF2DCB #DC5DD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D229A#FFFFFF#000000##FFFFFF
##9D229A1.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)
#07519D
Deuteranopia (green-blind)
#486197
Tritanopia (blue-blind)
#A3355E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d229a;
/* rgb */ color: rgb(157, 34, 154);
/* oklch */ color: oklch(50.1% 0.203 329.2);
Tailwind
colors: {
  custom: {
    50: '#be6db8',
    500: '#9d229a',
    950: '#000000',
  },
}
SCSS
$custom: #9d229a;
$custom-light: #be6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d229a",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 301.463,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.50092,
    "c": 0.203,
    "h": 329.2
  },
  "luminance": 0.10645
}

Semantic roles & 50–950 ramp

primary
#9D229A
secondary
#5AC15D
accent
#E74440
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D229A

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

Preview Lab → · Contrast checker → · Palette generator →

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