#9D228E#9D228E

#9D228E is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.194 H 333.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#9D228E
RGBrgb(157, 34, 142)
HSLhsl(307, 64%, 37%)
HSVhsv(307, 78%, 62%)
CMYKcmyk(0%, 78.3%, 9.6%, 38.4%)
CIE-LABlab(38.32, 60.06, -31.30)
CIE-LCHlch(38.32, 67.72, 332.48°)
OKLaboklab(49.41% 0.1742 -0.0858)
OKLCHoklch(49.41% 0.194 333.8)
XYZxyz(19.3593, 10.2669, 26.5480)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D228E #229D31
analogous
#6E229D #9D228E #9D2251
triadic
#9D228E #8E9D22 #228E9D
tetradic
#9D228E #9D6E22 #229D31 #22519D
square
#9D228E #9D6E22 #229D31 #22519D
split-complementary
#9D228E #519D22 #229D6E
monochromatic
#380C33 #6B1761 #9D228E #CF2DBB #DC5DCD

Accessibility & contrast

On white

6.88
#9D228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9D228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D228E
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D228E#FFFFFF#000000##FFFFFF
##9D228E1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F91
Deuteranopia (green-blind)
#4E608B
Tritanopia (blue-blind)
#A42F57
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d228e;
/* rgb */ color: rgb(157, 34, 142);
/* oklch */ color: oklch(49.4% 0.194 333.8);
Tailwind
colors: {
  custom: {
    50: '#be6caf',
    500: '#9d228e',
    950: '#000000',
  },
}
SCSS
$custom: #9d228e;
$custom-light: #be6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d228e",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 307.317,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49405,
    "c": 0.19418,
    "h": 333.8
  },
  "luminance": 0.10265
}

Semantic roles & 50–950 ramp

primary
#9D228E
secondary
#5AC167
accent
#E75540
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D228E

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

Preview Lab → · Contrast checker → · Palette generator →

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