#9D238C#9D238C

#9D238C is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.192 H 334.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#9D238C
RGBrgb(157, 35, 140)
HSLhsl(308, 64%, 38%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 77.7%, 10.8%, 38.4%)
CIE-LABlab(38.31, 59.46, -30.07)
CIE-LCHlch(38.31, 66.64, 333.17°)
OKLaboklab(49.37% 0.1732 -0.0823)
OKLCHoklch(49.37% 0.192 334.6)
XYZxyz(19.2395, 10.2653, 25.7740)
Luminance0.1026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D238C #239D34
analogous
#71239D #9D238C #9D234F
triadic
#9D238C #8C9D23 #238C9D
tetradic
#9D238C #9D7123 #239D34 #234F9D
square
#9D238C #9D7123 #239D34 #234F9D
split-complementary
#9D238C #4F9D23 #239D71
monochromatic
#390D33 #6B185F #9D238C #CF2EB9 #DB5FCA

Accessibility & contrast

On white

6.88
#9D238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D238C
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D238C#FFFFFF#000000##FFFFFF
##9D238C1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F8F
Deuteranopia (green-blind)
#4F6089
Tritanopia (blue-blind)
#A52F56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d238c;
/* rgb */ color: rgb(157, 35, 140);
/* oklch */ color: oklch(49.4% 0.192 334.6);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9d238c',
    950: '#000000',
  },
}
SCSS
$custom: #9d238c;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d238c",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 308.361,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49369,
    "c": 0.19178,
    "h": 334.6
  },
  "luminance": 0.10264
}

Semantic roles & 50–950 ramp

primary
#9D238C
secondary
#5CC06A
accent
#E75841
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D238C

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

Preview Lab → · Contrast checker → · Palette generator →

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