#9D238D#9D238D

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

Color values

HEX#9D238D
RGBrgb(157, 35, 141)
HSLhsl(308, 64%, 38%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 77.7%, 10.2%, 38.4%)
CIE-LABlab(38.37, 59.61, -30.60)
CIE-LCHlch(38.37, 67.01, 332.82°)
OKLaboklab(49.42% 0.1733 -0.0839)
OKLCHoklch(49.42% 0.192 334.2)
XYZxyz(19.3136, 10.2950, 26.1641)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D238D #239D33
analogous
#70239D #9D238D #9D2350
triadic
#9D238D #8D9D23 #238D9D
tetradic
#9D238D #9D7023 #239D33 #23509D
square
#9D238D #9D7023 #239D33 #23509D
split-complementary
#9D238D #509D23 #239D70
monochromatic
#390D33 #6B1860 #9D238D #CF2EBA #DB5FCB

Accessibility & contrast

On white

6.87
#9D238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D238D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D238D
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D238D#FFFFFF#000000##FFFFFF
##9D238D1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F90
Deuteranopia (green-blind)
#4F618A
Tritanopia (blue-blind)
#A52F56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d238d;
/* rgb */ color: rgb(157, 35, 141);
/* oklch */ color: oklch(49.4% 0.192 334.2);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9d238d',
    950: '#000000',
  },
}
SCSS
$custom: #9d238d;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d238d",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 307.869,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49423,
    "c": 0.19249,
    "h": 334.2
  },
  "luminance": 0.10293
}

Semantic roles & 50–950 ramp

primary
#9D238D
secondary
#5CC069
accent
#E75741
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D238D

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

Preview Lab → · Contrast checker → · Palette generator →

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