#9D229F#9D229F

#9D229F is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.207 H 327.4°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#9D229F
RGBrgb(157, 34, 159)
HSLhsl(299, 65%, 38%)
HSVhsv(299, 79%, 62%)
CMYKcmyk(1.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(39.27, 62.76, -40.11)
CIE-LCHlch(39.27, 74.48, 327.41°)
OKLaboklab(50.39% 0.1742 -0.1114)
OKLCHoklch(50.39% 0.207 327.4)
XYZxyz(20.7344, 10.8169, 33.7900)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D229F #249F22
analogous
#5E229F #9D229F #9F2262
triadic
#9D229F #9F9D22 #229F9D
tetradic
#9D229F #9F5E22 #249F22 #22629F
square
#9D229F #9F5E22 #249F22 #22629F
split-complementary
#9D229F #629F22 #229F5E
monochromatic
#390C3A #6B176D #9D229F #CF2DD1 #DB5FDD

Accessibility & contrast

On white

6.64
#9D229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9D229F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D229F
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D229F#FFFFFF#000000##FFFFFF
##9D229F1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#44629C
Tritanopia (blue-blind)
#A23860
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d229f;
/* rgb */ color: rgb(157, 34, 159);
/* oklch */ color: oklch(50.4% 0.207 327.4);
Tailwind
colors: {
  custom: {
    50: '#be6dbc',
    500: '#9d229f',
    950: '#000000',
  },
}
SCSS
$custom: #9d229f;
$custom-light: #be6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d229f",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 299.04,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50393,
    "c": 0.20677,
    "h": 327.4
  },
  "luminance": 0.10815
}

Semantic roles & 50–950 ramp

primary
#9D229F
secondary
#5DC15B
accent
#E84043
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D229F

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

Preview Lab → · Contrast checker → · Palette generator →

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