#9D228F#9D228F

#9D228F is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.195 H 333.4°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#9D228F
RGBrgb(157, 34, 143)
HSLhsl(307, 64%, 37%)
HSVhsv(307, 78%, 62%)
CMYKcmyk(0%, 78.3%, 8.9%, 38.4%)
CIE-LABlab(38.37, 60.21, -31.82)
CIE-LCHlch(38.37, 68.10, 332.14°)
OKLaboklab(49.46% 0.1742 -0.0874)
OKLCHoklch(49.46% 0.195 333.4)
XYZxyz(19.4347, 10.2970, 26.9452)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D228F #229D30
analogous
#6D229D #9D228F #9D2252
triadic
#9D228F #8F9D22 #228F9D
tetradic
#9D228F #9D6D22 #229D30 #22529D
square
#9D228F #9D6D22 #229D30 #22529D
split-complementary
#9D228F #529D22 #229D6D
monochromatic
#380C33 #6B1761 #9D228F #CF2DBD #DC5DCE

Accessibility & contrast

On white

6.86
#9D228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D228F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D228F#FFFFFF#000000##FFFFFF
##9D228F1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4F92
Deuteranopia (green-blind)
#4D608C
Tritanopia (blue-blind)
#A43057
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d228f;
/* rgb */ color: rgb(157, 34, 143);
/* oklch */ color: oklch(49.5% 0.195 333.4);
Tailwind
colors: {
  custom: {
    50: '#be6cb0',
    500: '#9d228f',
    950: '#000000',
  },
}
SCSS
$custom: #9d228f;
$custom-light: #be6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d228f",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 306.829,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4946,
    "c": 0.1949,
    "h": 333.4
  },
  "luminance": 0.10295
}

Semantic roles & 50–950 ramp

primary
#9D228F
secondary
#5AC166
accent
#E75340
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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