#9D228B#9D228B

#9D228B is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.192 H 335.0°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9D228B
RGBrgb(157, 34, 139)
HSLhsl(309, 64%, 37%)
HSVhsv(309, 78%, 62%)
CMYKcmyk(0%, 78.3%, 11.5%, 38.4%)
CIE-LABlab(38.16, 59.61, -29.70)
CIE-LCHlch(38.16, 66.60, 333.51°)
OKLaboklab(49.24% 0.174 -0.0813)
OKLCHoklch(49.24% 0.192 335)
XYZxyz(19.1371, 10.1780, 25.3778)
Luminance0.1018 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D228B #229D34
analogous
#71229D #9D228B #9D224E
triadic
#9D228B #8B9D22 #228B9D
tetradic
#9D228B #9D7122 #229D34 #224E9D
square
#9D228B #9D7122 #229D34 #224E9D
split-complementary
#9D228B #4E9D22 #229D71
monochromatic
#380C32 #6B175E #9D228B #CF2DB8 #DC5DC9

Accessibility & contrast

On white

6.92
#9D228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D228B
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D228B#FFFFFF#000000##FFFFFF
##9D228B1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8E
Deuteranopia (green-blind)
#4F6088
Tritanopia (blue-blind)
#A52D55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d228b;
/* rgb */ color: rgb(157, 34, 139);
/* oklch */ color: oklch(49.2% 0.192 335.0);
Tailwind
colors: {
  custom: {
    50: '#be6cad',
    500: '#9d228b',
    950: '#000000',
  },
}
SCSS
$custom: #9d228b;
$custom-light: #be6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d228b",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 308.78,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49241,
    "c": 0.19205,
    "h": 335
  },
  "luminance": 0.10176
}

Semantic roles & 50–950 ramp

primary
#9D228B
secondary
#5AC169
accent
#E75940
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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