#9D239C#9D239C

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

Color values

HEX#9D239C
RGBrgb(157, 35, 156)
HSLhsl(300, 64%, 38%)
HSVhsv(300, 78%, 62%)
CMYKcmyk(0%, 77.7%, 0.6%, 38.4%)
CIE-LABlab(39.19, 61.98, -38.42)
CIE-LCHlch(39.19, 72.92, 328.20°)
OKLaboklab(50.28% 0.1735 -0.1065)
OKLCHoklch(50.28% 0.204 328.5)
XYZxyz(20.5062, 10.7720, 32.4452)
Luminance0.1077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D239C #239D24
analogous
#61239D #9D239C #9D235F
triadic
#9D239C #9C9D23 #239C9D
tetradic
#9D239C #9D6123 #239D24 #235F9D
square
#9D239C #9D6123 #239D24 #235F9D
split-complementary
#9D239C #5F9D23 #239D61
monochromatic
#390D39 #6B186A #9D239C #CF2ECE #DB5FDA

Accessibility & contrast

On white

6.66
#9D239C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D239C
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D239C#FFFFFF#000000##FFFFFF
##9D239C1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03529F
Deuteranopia (green-blind)
#476299
Tritanopia (blue-blind)
#A2375F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d239c;
/* rgb */ color: rgb(157, 35, 156);
/* oklch */ color: oklch(50.3% 0.204 328.5);
Tailwind
colors: {
  custom: {
    50: '#be6dba',
    500: '#9d239c',
    950: '#000000',
  },
}
SCSS
$custom: #9d239c;
$custom-light: #be6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#9d239c",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 300.492,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.20357,
    "h": 328.5
  },
  "luminance": 0.1077
}

Semantic roles & 50–950 ramp

primary
#9D239C
secondary
#5CC05C
accent
#E74341
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D239C

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

Preview Lab → · Contrast checker → · Palette generator →

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