#9D229E#9D229E

#9D229E is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.206 H 327.8°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9D229E
RGBrgb(157, 34, 158)
HSLhsl(300, 65%, 38%)
HSVhsv(300, 78%, 62%)
CMYKcmyk(0.6%, 78.5%, 0%, 38%)
CIE-LABlab(39.21, 62.59, -39.60)
CIE-LCHlch(39.21, 74.07, 327.68°)
OKLaboklab(50.33% 0.1742 -0.1099)
OKLCHoklch(50.33% 0.206 327.8)
XYZxyz(20.6479, 10.7823, 33.3348)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D229E #239E22
analogous
#5F229E #9D229E #9E2261
triadic
#9D229E #9E9D22 #229E9D
tetradic
#9D229E #9E5F22 #239E22 #22619E
square
#9D229E #9E5F22 #239E22 #22619E
split-complementary
#9D229E #619E22 #229E5F
monochromatic
#390C39 #6B176C #9D229E #CF2DD0 #DB5EDC

Accessibility & contrast

On white

6.65
#9D229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D229E
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D229E#FFFFFF#000000##FFFFFF
##9D229E1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#45629B
Tritanopia (blue-blind)
#A23860
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d229e;
/* rgb */ color: rgb(157, 34, 158);
/* oklch */ color: oklch(50.3% 0.206 327.8);
Tailwind
colors: {
  custom: {
    50: '#be6dbb',
    500: '#9d229e',
    950: '#000000',
  },
}
SCSS
$custom: #9d229e;
$custom-light: #be6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d229e",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 299.516,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50332,
    "c": 0.20601,
    "h": 327.8
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#9D229E
secondary
#5CC15B
accent
#E84042
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D229E

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

Preview Lab → · Contrast checker → · Palette generator →

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