#9D238F#9D238F

#9D238F is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.194 H 333.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9D238F
RGBrgb(157, 35, 143)
HSLhsl(307, 64%, 38%)
HSVhsv(307, 78%, 62%)
CMYKcmyk(0%, 77.7%, 8.9%, 38.4%)
CIE-LABlab(38.47, 59.92, -31.66)
CIE-LCHlch(38.47, 67.77, 332.15°)
OKLaboklab(49.53% 0.1734 -0.0869)
OKLCHoklch(49.53% 0.194 333.4)
XYZxyz(19.4637, 10.3550, 26.9549)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D238F #239D31
analogous
#6E239D #9D238F #9D2352
triadic
#9D238F #8F9D23 #238F9D
tetradic
#9D238F #9D6E23 #239D31 #23529D
square
#9D238F #9D6E23 #239D31 #23529D
split-complementary
#9D238F #529D23 #239D6E
monochromatic
#390D34 #6B1861 #9D238F #CF2EBD #DB5FCD

Accessibility & contrast

On white

6.84
#9D238F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9D238F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D238F
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D238F#FFFFFF#000000##FFFFFF
##9D238F1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F92
Deuteranopia (green-blind)
#4E618C
Tritanopia (blue-blind)
#A43058
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d238f;
/* rgb */ color: rgb(157, 35, 143);
/* oklch */ color: oklch(49.5% 0.194 333.4);
Tailwind
colors: {
  custom: {
    50: '#be6cb0',
    500: '#9d238f',
    950: '#000000',
  },
}
SCSS
$custom: #9d238f;
$custom-light: #be6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d238f",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 306.885,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49533,
    "c": 0.19393,
    "h": 333.4
  },
  "luminance": 0.10353
}

Semantic roles & 50–950 ramp

primary
#9D238F
secondary
#5CC067
accent
#E75441
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D238F

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

Preview Lab → · Contrast checker → · Palette generator →

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