#9D228D#9D228D

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

Color values

HEX#9D228D
RGBrgb(157, 34, 141)
HSLhsl(308, 64%, 37%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 78.3%, 10.2%, 38.4%)
CIE-LABlab(38.26, 59.91, -30.77)
CIE-LCHlch(38.26, 67.35, 332.82°)
OKLaboklab(49.35% 0.1741 -0.0843)
OKLCHoklch(49.35% 0.193 334.2)
XYZxyz(19.2846, 10.2370, 26.1544)
Luminance0.1023 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D228D #229D32
analogous
#70229D #9D228D #9D224F
triadic
#9D228D #8D9D22 #228D9D
tetradic
#9D228D #9D7022 #229D32 #224F9D
square
#9D228D #9D7022 #229D32 #224F9D
split-complementary
#9D228D #4F9D22 #229D70
monochromatic
#380C33 #6B1760 #9D228D #CF2DBA #DC5DCC

Accessibility & contrast

On white

6.89
#9D228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D228D
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D228D#FFFFFF#000000##FFFFFF
##9D228D1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#4E608A
Tritanopia (blue-blind)
#A52E56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d228d;
/* rgb */ color: rgb(157, 34, 141);
/* oklch */ color: oklch(49.4% 0.193 334.2);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9d228d',
    950: '#000000',
  },
}
SCSS
$custom: #9d228d;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d228d",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 307.805,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4935,
    "c": 0.19346,
    "h": 334.2
  },
  "luminance": 0.10235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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