#9D229D#9D229D

#9D229D is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.205 H 328.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9D229D
RGBrgb(157, 34, 157)
HSLhsl(300, 64%, 37%)
HSVhsv(300, 78%, 62%)
CMYKcmyk(0%, 78.3%, 0%, 38.4%)
CIE-LABlab(39.15, 62.43, -39.09)
CIE-LCHlch(39.15, 73.66, 327.94°)
OKLaboklab(50.27% 0.1743 -0.1084)
OKLCHoklch(50.27% 0.205 328.1)
XYZxyz(20.5622, 10.7480, 32.8833)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D229D #229D22
analogous
#60229D #9D229D #9D2260
triadic
#9D229D #9D9D22 #229D9D
tetradic
#9D229D #9D6022 #229D22 #22609D
square
#9D229D #9D6022 #229D22 #22609D
split-complementary
#9D229D #609D22 #229D60
monochromatic
#380C38 #6B176B #9D229D #CF2DCF #DC5DDC

Accessibility & contrast

On white

6.67
#9D229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9D229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D229D
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D229D#FFFFFF#000000##FFFFFF
##9D229D1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#46629A
Tritanopia (blue-blind)
#A2375F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d229d;
/* rgb */ color: rgb(157, 34, 157);
/* oklch */ color: oklch(50.3% 0.205 328.1);
Tailwind
colors: {
  custom: {
    50: '#be6dba',
    500: '#9d229d',
    950: '#000000',
  },
}
SCSS
$custom: #9d229d;
$custom-light: #be6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#9d229d",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 300,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.50271,
    "c": 0.20525,
    "h": 328.1
  },
  "luminance": 0.10746
}

Semantic roles & 50–950 ramp

primary
#9D229D
secondary
#5AC15A
accent
#E74040
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D229D

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

Preview Lab → · Contrast checker → · Palette generator →

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