#9D228C#9D228C

#9D228C is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.193 H 334.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9D228C
RGBrgb(157, 34, 140)
HSLhsl(308, 64%, 37%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 78.3%, 10.8%, 38.4%)
CIE-LABlab(38.21, 59.76, -30.23)
CIE-LCHlch(38.21, 66.97, 333.16°)
OKLaboklab(49.3% 0.1741 -0.0828)
OKLCHoklch(49.3% 0.193 334.6)
XYZxyz(19.2105, 10.2073, 25.7643)
Luminance0.1021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D228C #229D33
analogous
#71229D #9D228C #9D224E
triadic
#9D228C #8C9D22 #228C9D
tetradic
#9D228C #9D7122 #229D33 #224E9D
square
#9D228C #9D7122 #229D33 #224E9D
split-complementary
#9D228C #4E9D22 #229D71
monochromatic
#380C32 #6B175F #9D228C #CF2DB9 #DC5DCB

Accessibility & contrast

On white

6.91
#9D228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9D228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D228C
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D228C#FFFFFF#000000##FFFFFF
##9D228C1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F8F
Deuteranopia (green-blind)
#4F6089
Tritanopia (blue-blind)
#A52E56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d228c;
/* rgb */ color: rgb(157, 34, 140);
/* oklch */ color: oklch(49.3% 0.193 334.6);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9d228c',
    950: '#000000',
  },
}
SCSS
$custom: #9d228c;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d228c",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 308.293,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49295,
    "c": 0.19276,
    "h": 334.6
  },
  "luminance": 0.10206
}

Semantic roles & 50–950 ramp

primary
#9D228C
secondary
#5AC168
accent
#E75740
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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